• en | es

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:

About the author

Mash is a pragmatic software craftsman always looking to improve his software creation skills and helping others do the same. He firmly believes that a well-rounded software craftsman must have a keen interest in all aspects of software creation, including; process, people, technology, user experience, development, operation, maintenance, and social impact. He relishes the daily challenges that Codurance brings to him–stretching his existing knowledge and expertise allowing him to constantly grow as a professional.

Mash is an advisor and a leader. During his diverse career, he has succeeded in invigorating large ailing software projects as well as creating highly effective software teams and departments. His broad and deep technical knowledge, organisational skills, craft focus, and empathy to people involved have been integral to his success. He has worked in many roles for charities, investment banks, consultancies, government, media and cloud providers. He prides himself at being a hands-on software developer and believes that software development skills are very hard to learn and the best way to maintain them is to apply them.

Enjoying this article?

Sign up to our monthly newsletter to get content like this in your inbox!