I've been able to find documentation on how to debug tests in Maven,
but I can't find anything that explains how to debug an application
(that is, a Java program launched using exec-maven-plugin).
I tried passing the debug arguments to the application (-
agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5000),
but that doesn't work because exec:java doesn't fork the Java program.
(In Ant, this was so easy to fix; I just set fork=true. Why is there
no such option in exec-maven-plugin?)
I could use exec:exec to launch Java -- at least then it would
recognize the debug arguments -- but that also fails because it
doesn't have access to the classpath of my Maven project.
Is there some other way of getting this to work?
Trevor
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]