## org.mortbay.jetty.plugin
Class JettyStopMojo

    java.lang.Object
      org.apache.maven.plugin.AbstractMojo
          org.mortbay.jetty.plugin.JettyStopMojo

All Implemented Interfaces:
  org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    public class JettyStopMojo

extends org.apache.maven.plugin.AbstractMojo

JettyStopMojo - stops a running instance of jetty. The ff are required: -DstopKey=someKey -DstopPort=somePort

Author:
  David Yu

Field Summary
`protected java.lang.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 sending stop command

Fields inherited from interface org.apache.maven.plugin.Mojo
`ROLE`

Constructor Summary
`JettyStopMojo()`

Method Summary
`void` `execute()`

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

### stopPort

    protected int stopPort

  Port to listen to stop jetty on sending stop command

### stopKey

    protected java.lang.String stopKey

  Key to provide when stopping jetty on executing java -DSTOP.KEY=<stopKey> -DSTOP.PORT=<stopPort> -jar start.jar --stop

Constructor Detail

### JettyStopMojo

    public JettyStopMojo()

Method Detail

### execute

    public void execute()
                 throws org.apache.maven.plugin.MojoExecutionException,
                        org.apache.maven.plugin.MojoFailureException

  Throws:
    `org.apache.maven.plugin.MojoExecutionException`
    `org.apache.maven.plugin.MojoFailureException`

Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.