Class JettyDeployWar

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

    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

        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,
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        execute in class JettyRunWarMojo
        See Also: