Class JettyEffectiveWebXml

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

    @Mojo(name="effective-web-xml",
          requiresDependencyResolution=TEST)
    @Execute(phase=TEST_COMPILE)
    public class JettyEffectiveWebXml
    extends JettyRunMojo
    This goal runs the jetty quickstart feature on an unassembled webapp in order to generate a comprehensive web.xml that combines all information from annotations, webdefault.xml and all web-fragment.xml files. By default, the web.xml is generated to the console output only. Use the effectiveWebXml parameter to provide a file name into which to save the output. See http://www.eclipse.org/jetty/documentation for more information on this and other jetty plugins. Runs jetty on the unassembled webapp to generate the effective web.xml
    • Field Detail

      • target

        @Parameter(defaultValue="${project.build.directory}",
                   readonly=true,
                   required=true)
        protected java.io.File target
        The target directory
      • effectiveWebXml

        @Parameter
        protected java.io.File effectiveWebXml
        The name of the file to generate into
      • deleteOnExit

        protected boolean deleteOnExit
    • Constructor Detail

      • JettyEffectiveWebXml

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

        public void startJetty()
                        throws org.apache.maven.plugin.MojoExecutionException
        Overrides:
        startJetty in class AbstractJettyMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException