06 ottobre 2009

How to debug with maven jetty

Yes yes I know, you are tired you look from side to side on this issue, for this I will write only the essential things for this how-to:

First set up your MAVEN_OPTS:

export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y"

Second stat you Jetty:

mvn jetty:run

Now maven listening for 4000 port, set up your IDE to start a debug with socket attach on this port.
Posta un commento