I\'m trying to split a Maven WAR project into two modules, so that I can build a separate JAR file with command line tools. The result has the following structure:
Add jetty plugin to the root pom and configure a contextHandler pointing to the desired war. This works for me in a project with multiple jar modules and two overlay wars.
org.eclipse.jetty
jetty-maven-plugin
9.3.0.M2
10
${project.basedir}/project-war/target/project-war-${project.version}.war
/
http://eclipse.org/jetty/documentation/current/jetty-maven-plugin.html#running-more-than-one-webapp