How to start tomcat using maven in debug mode -
i have found maven plugin start tomcat.
do maven have plugin start tomcat in debug mode?
if you're using eclipse , you're running maven externally (not using m2eclipse) can use whatever command line command use use mvndebug
instead of mvn
.
as example, run tomcat plugin under "run"
profile normal command is:
mvn clean install -prun
this uses <maven-dir>/bin/mvn
script run in debug mode, substitute <maven-dir>/bin/mvndebug
in.
mvndebug clean install -prun
if mvndebug
isn't on path might have use full path (or create link directory on path, /usr/bin
, it), e.g:
/path/to/maven-dir/mvndebug clean install -prun
i'm using maven 3.0.5 , mvndebug
script comes out of box. if inside you'll see titi wangsa bin damhore says, you'll note suspend=y
used jvm waits connect debugger before continuing:
maven_debug_opts="-xdebug -xnoagent -djava.compiler=none -xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
this may or may not want.