Package org.eclipse.jetty.maven.plugin
Class JettyStopMojo
- java.lang.Object
 - 
- org.apache.maven.plugin.AbstractMojo
 - 
- org.eclipse.jetty.maven.plugin.JettyStopMojo
 
 
 
- 
- All Implemented Interfaces:
 org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="stop") public class JettyStopMojo extends org.apache.maven.plugin.AbstractMojoThis goal stops a running instance of jetty. The stopPort and stopKey parameters can be used to configure which jetty to stop. Stops jetty that is configured with <stopKey> and <stopPort>. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringstopKeyKey to provide when stopping jetty on executing java -DSTOP.KEY=<stopKey> -DSTOP.PORT=<stopPort> -jar start.jar --stopprotected intstopPortPort to listen to stop jetty on sending stop commandprotected intstopWaitMax time in seconds that the plugin will wait for confirmation that jetty has stopped. 
- 
Constructor Summary
Constructors Constructor Description JettyStopMojo() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()java.lang.StringgetStopKey()intgetStopPort()voidsetStopKey(java.lang.String stopKey)voidsetStopPort(int stopPort) 
 - 
 
- 
- 
Field Detail
- 
stopPort
@Parameter(required=true) protected int stopPort
Port to listen to stop jetty on sending stop command 
- 
stopKey
@Parameter(required=true) protected java.lang.String stopKey
Key to provide when stopping jetty on executing java -DSTOP.KEY=<stopKey> -DSTOP.PORT=<stopPort> -jar start.jar --stop 
- 
stopWait
@Parameter protected int stopWait
Max time in seconds that the plugin will wait for confirmation that jetty has stopped. 
 - 
 
- 
Method Detail
- 
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
 org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
 
- 
getStopPort
public int getStopPort()
 
- 
setStopPort
public void setStopPort(int stopPort)
 
- 
getStopKey
public java.lang.String getStopKey()
 
- 
setStopKey
public void setStopKey(java.lang.String stopKey)
 
 - 
 
 -