Debug Jetty in Maven started by mvn jetty:run

Set environment variable MAVEN_OPTS to:

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

Then in Eclipse 3 click Run > Debug Configurations > create New Remote Java Application. Remember to attach sources. Invoke Maven by mvn jetty:runand start Debug in Eclipse.

posted @ 2013-04-25 20:20  lexloo  阅读(308)  评论(0编辑  收藏  举报
ccc