|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.mortbay.jetty.plugin.JettyRunForkedMojo
public class JettyRunForkedMojo
This goal is used to assemble your webapp into a war and automatically deploy it to Jetty in a forked JVM.
You need to define a jetty.xml file to configure connectors etc and a context xml file that sets up anything special about your webapp. This plugin will fill in the:
There is a reference guide to the configuration parameters for this plugin, and more detailed information with examples in the Configuration Guide.
| Nested Class Summary | |
|---|---|
class |
JettyRunForkedMojo.ShutdownThread
|
| Field Summary | |
|---|---|
String |
PORT_SYSPROPERTY
|
protected String |
stopKey
Key to provide when stopping jetty on executing java -DSTOP.KEY=<stopKey> -DSTOP.PORT=<stopPort> -jar start.jar --stop |
protected int |
stopPort
Port to listen to stop jetty on executing -DSTOP.PORT=<stopPort> -DSTOP.KEY=<stopKey> -jar start.jar --stop |
protected File |
target
The target directory |
protected File |
tmpDirectory
The temporary directory to use for the webapp. |
protected boolean |
useProvidedScope
Whether or not to include dependencies on the plugin's classpath with <scope>provided</scope> Use WITH CAUTION as you may wind up with duplicate jars/classes. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
JettyRunForkedMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
|
static String |
fileSeparators(String path)
|
String |
getClassPath()
|
List<String> |
getProvidedJars()
|
boolean |
isPluginArtifact(org.apache.maven.artifact.Artifact artifact)
|
static String |
pathSeparators(String path)
|
File |
prepareConfiguration()
|
void |
startJettyRunner()
|
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String PORT_SYSPROPERTY
protected boolean useProvidedScope
protected File target
protected File tmpDirectory
protected int stopPort
protected String stopKey
| Constructor Detail |
|---|
public JettyRunForkedMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionMojo.execute()
public List<String> getProvidedJars()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public File prepareConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic boolean isPluginArtifact(org.apache.maven.artifact.Artifact artifact)
public void startJettyRunner()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public String getClassPath()
throws Exception
Exceptionpublic static String fileSeparators(String path)
public static String pathSeparators(String path)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||