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.Launcherprogram args:
jetty:runVM args:
-Xmx512M -Dclassworlds.conf=${M2_HOME}/bin/m2.conf -Dmaven.home=${M2_HOME} -Djetty.port=8082... where I've set upM2_HOMEin the list of variables available in the Arguments tab of the run config.In the Classpath tab, Add
plexus-classworlds-2.4.jarfrom theboot/subdirectory of your maven app dir.
{2014.06.02 20:06}
rss feed