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

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:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: