August 13, 2009

Start Maven in Debug Mode

« Maven XML Plugin - Validation | Main | Java Reflection Example - Dump Field Values  »
Following you see an easy way to start maven goals in debug mode:
mvn jetty:run -DargLine="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
Regards Rafael

Technorati Tags:

Posted by rafael.sobek at 5:14 PM in Maven

 

[Trackback URL for this entry]

Comment: peter at Di, 18 Aug 3:51 PM

even easier with
mvn -X ....

Comment: Ondra at Di, 6 Apr 5:16 PM

Is this supposed to work with all plugins or just jetty? I am trying Cargo, but it doesn't wait.

pater << -X is something else.

Your comment:

(not displayed)
 
 
 

Live Comment Preview: