Class JettyDeployWar

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

    @Mojo(name="deploy-war",
          requiresDependencyResolution=RUNTIME)
    @Execute(phase=VALIDATE)
    public class JettyDeployWar
    extends JettyRunWarMojo

    This goal is used to run Jetty with a pre-assembled war.

    It accepts exactly the same options as the run-war goal. However, it doesn't assume that the current artifact is a webapp and doesn't try to assemble it into a war before its execution. So using it makes sense only when used in conjunction with the war configuration parameter pointing to a pre-built WAR.

    This goal is useful e.g. for launching a web app in Jetty as a target for unit-tested HTTP client components.

    Deploy a pre-assembled war
    • Field Detail

      • daemon

        @Parameter(defaultValue="true")
        protected boolean daemon
        If true, the plugin should continue and not block. Otherwise the plugin will block further execution and you will need to use cntrl-c to stop it.
    • Constructor Detail

      • JettyDeployWar

        public JettyDeployWar()
    • Method Detail

      • 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 JettyRunWarMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
        See Also:
        Mojo.execute()