Eclipse debugging with jetty-maven-plugin
Based initially on this page, this is what I do to debug web apps in Eclipse when using the jetty-maven-plugin.
create a new Run Configuration
main class:
org.codehaus.classworlds.Launcher
program args:
jetty:run
VM args:
-Xmx512M -Dclassworlds.conf=${M2_HOME}/bin/m2.conf -Dmaven.home=${M2_HOME} -Djetty.port=8082
... where I've set upM2_HOME
in the list of variables available in the Arguments tab of the run config.In the Classpath tab, Add
plexus-classworlds-2.4.jar
from theboot/
subdirectory of your maven app dir.
{2014.06.02 20:06}