Class 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 Detail

      • stopWait

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

      • JettyStopMojo

        public JettyStopMojo()
    • Method Detail

      • 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