mvn tomcat:run
if you want to run it in debug mode, in order to be able to remote debug it, set the MAVEN_OPTS to:
export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9000"
to connect to this process from eclipse/sts open the debug/debug configurations dialog, and choose: Remore Java Application (even if its running on localhost)
No comments:
Post a Comment