I\'ve not built a Java web application before, but I have it complete enough to test and Maven is building my WAR file just fine. It is a multi-module Maven project and the
A better way of adding the debugging options to $MAVEN_OPTS
option, and thus not merging them with the other existing options (if you want to start your app not in the debug mode, you have to remove those options again), is to use the Maven out of the box debugger mvnDebug
, located in its bin directory, this way mvnDebug jetty:run
. This will execute your app in debug mode and what's remaining is attaching your debugger.