-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jetty-maven-plugin does not correctly pass JVM arguments for external deployMode #6153
Comments
@kazkansouh using the EXTERNAL mode of running jetty will fork a new process and execute the equivalent of <jvmArgs>--lib=${project.basedir}/../jetty-auth/target/jetty-auth-1.0-SNAPSHOT.jar --exec -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n</jvmArgs> |
Signed-off-by: Jan Bartel <[email protected]>
@kazkansouh it appears that if I swap the ordering of the jvmArgs passed into the forked process they are correctly interpreted by the jvm. I've opened a PR for that here: #6155. If you want to build the branch https://github.com/eclipse/jetty.project/tree/jetty-10.0.x-6153-swap-jvmArgs-order and give it a try, that would be helpful. |
Signed-off-by: Jan Bartel <[email protected]>
Signed-off-by: Jan Bartel <[email protected]>
) * Issue #6153 Swap order of jetty maven plugin jvmArgs for EXTERNAL Signed-off-by: Jan Bartel <[email protected]>
Jetty version
jetty-maven-plugin: 10.0.2
Java version
OS type/version
debian/rolling
Description
I have been attempting use
jetty-maven-plugin
during development phase of a webapp but have come across an issue with thejvmArgs
configuration parameter when running withdeployMode=EXTERNAL
.From inspecting the code that generates the command which launches the java it treats the
jvmArgs
as arguments to the jetty jar, which means its not possible to enable the java debug server. That is, I want to setjvmArgs
to-agentlib:jdwp=transport=dt_socket,address=8000,server=y
so I can actually debug the code but this is instead passed to jetty and not jvm and then ignored. See excerpt of the code used to build the command line below:https://github.com/eclipse/jetty.project/blob/e163b001c34704154edb45c7aa37908e0d9aafd7/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/JettyHomeForker.java#L168-L187
I think it would be useful to have both a
jettyArgs
andjvmArgs
configuration parameter as there are cases where it is useful to pass options directly to jetty as well.In case its of use, here is the plugin configuration (it tries to make use of both jetty and jvm arguments and fails):
The text was updated successfully, but these errors were encountered: