Class JettyStopMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.jetty.maven.plugin.AbstractWebAppMojo
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 AbstractWebAppMojo
This goal stops a running instance of jetty. The stopPort and stopKey parameters can be used to configure which jetty to stop.
  • Field Details

    • stopWait

      @Parameter protected int stopWait
      Max time in seconds that the plugin will wait for confirmation that jetty has stopped.
  • Constructor Details

    • JettyStopMojo

      public JettyStopMojo()
  • Method Details

    • startJettyEmbedded

      protected void startJettyEmbedded() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      startJettyEmbedded in class AbstractWebAppMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • startJettyForked

      protected void startJettyForked() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      startJettyForked in class AbstractWebAppMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • startJettyHome

      protected void startJettyHome() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      startJettyHome in class AbstractWebAppMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractWebAppMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException