mvn clean package cargo:redeploy
<plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.3.6.v20151106</version> <configuration> <scanIntervalSeconds>10</scanIntervalSeconds> <webAppConfig> <contextPath>/my-context</contextPath> <extraClasspath>target/classes;E:\workspace2013\zcore\target\classes</extraClasspath> </webAppConfig> <scanTargets> <scanTarget>E:\workspace2013\zcore\target\classes</scanTarget> </scanTargets> </configuration> </plugin> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.1.3</version> <configuration> <container> <containerId>tomcat7x</containerId> <type>remote</type> </container> <configuration> <type>runtime</type> <properties> <cargo.remote.username>tomcat</cargo.remote.username> <cargo.remote.password>tomcat</cargo.remote.password> <cargo.remote.manager.url>http://localhost:8080/manager/text</cargo.remote.manager.url> </properties> </configuration> </configuration> </plugin> </plugins> </build>
http://stackoverflow.com/questions/3636493/multi-module-maven-project-and-jettyrun