Configuring a WAR project in Eclipse & Setting up Jetty to Run/Debug

17 Apr 2009

Generate eclipse project: mvn eclipse:eclipse Import the project into eclipse

In Eclipse - Create a new Run/Debug config - Set main class toorg.codehaus.classworlds.Launcher

Go to the argument tab: - Set Program arguments to jetty:run - Set VM arguments to -Xmx512M -Dclassworlds.conf=${M2_HOME}/bin/m2.conf -Dmaven.home=${M2_HOME}

Go to the classpath tab: - Remove the application from the user entries - Add the ${M2_HOME}/boot/classworlds-1.1.jar to the user entries

Go to the source tab:

Related Blogs

Get content like this straight to your inbox!

Codurance Logo

Software is our passion.

We are software craftspeople. We build well-crafted software for our clients, we help developers to get better at their craft through training, coaching and mentoring, and we help companies get better at delivering software.