Class JettyStartMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="start", requiresDependencyResolution=TEST) public class JettyStartMojo extends AbstractUnassembledWebAppMojo

This goal is similar to the jetty:run goal in that it it starts jetty on an unassembled webapp, EXCEPT that it is designed to be bound to an execution inside your pom. Thus, this goal does NOT run a parallel build cycle, so you must be careful to ensure that you bind it to a phase in which all necessary generated files and classes for the webapp have been created.

This goal will NOT scan for changes in either the webapp project or any scanTargets or scanTargetPatterns.

You can configure this goal to run your webapp either in-process with maven, or forked into a new process, or deployed into a jetty distribution.