Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • did not work for me, I tried: <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.5.v20120716</version> <configuration> <jvmArgs>-Xmx2048M -XX:MaxPermSize=2048m</jvmArgs> <webAppSourceDirectory>${project.basedir}/war</webAppSourceDirectory> <webAppConfig> <descriptor>${project.basedir}/war/WEB-INF/web.xml</descriptor> </webAppConfig> </configuration> </plugin> Commented Jan 16, 2013 at 20:17
  • 1
    @davidjnelson You need to use jetty:run-forked goal. See: Matthew Farwell's answer above: stackoverflow.com/a/13388081/19501. Commented Oct 18, 2013 at 4:04
  • But how to have jetty run as jetty:run-forked when the command being typed in is mvn clean install ? Commented Dec 18, 2015 at 10:33