the corner office : tech blog

a tech blog, by Colin Pretorius

« Links 2014.05.31 | Main | QOTD 2014.06.20 »

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 up M2_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 the boot/ subdirectory of your maven app dir.

(previously)

{2014.06.02 - 21:06}

meta

-home-
about
main blog

archives

rssfeed posts

© Colin Pretorius