Debugging in Maven?

Posted by aduric on Stack Overflow See other posts from Stack Overflow or by aduric
Published on 2010-05-29T14:12:34Z Indexed on 2010/05/29 14:22 UTC
Read the original article Hit count: 471

Filed under:
|
|
|
|

Is it possible to launch a debugger such as jdb from maven? I have a pom.xml file that compiles the project successfully. However, the program hangs somewhere and I would really like to launch jdb or an equivalent debugger to see what's happening.

I compile using mvn compile and launch using:
mvn exec:java -Dexec.mainClass="com.mycompany.app.App"

I was expecting something like:
mvn exec:jdb -Dexec.mainClass="com.mycompany.app.App"
to launch the debugger but, as usual, my expectations are incongruent with maven's philosophy.

Also, I couldn't find any documentation (on Maven's website or google) to describe how debugging works. I suspect that I have to use some plugin.

© Stack Overflow or respective owner

Related posts about java

Related posts about debugging