But, what about debugging? Here I found two solutions.
Solution 1 : the standard mode
Just use :
But it's a pre-configured solution and you should want to precise some specific options according to your environment.
Solution 2 : customize your debugging options
This is very simple.
- Ensure that you correctly declared your JAVA_HOME
- Set the debugging options which will be used by the JVM
For example :
export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
Then, just start your server with mvn tomcat:run-war