Class AbstractUnassembledWebAppMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.jetty.maven.plugin.AbstractWebAppMojo
org.eclipse.jetty.maven.plugin.AbstractUnassembledWebAppMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
JettyEffectiveWebXml, JettyRunMojo, JettyStartMojo

public abstract class AbstractUnassembledWebAppMojo extends AbstractWebAppMojo
Base class for all goals that operate on unassembled webapps.
  • Field Details

    • webXml

      @Parameter(defaultValue="${project.baseDir}/src/main/webapp/WEB-INF/web.xml") protected File webXml
      The default location of the web.xml file. Will be used if <webApp><descriptor> is not set.
    • testClassesDirectory

      @Parameter(defaultValue="${project.build.testOutputDirectory}", required=true) protected File testClassesDirectory
      The directory containing generated test classes.
    • scanTestClassesPattern

      @Parameter protected ScanPattern scanTestClassesPattern
      An optional pattern for includes/excludes of classes in the testClassesDirectory
    • classesDirectory

      @Parameter(defaultValue="${project.build.outputDirectory}", required=true) protected File classesDirectory
      The directory containing generated classes.
    • scanClassesPattern

      @Parameter protected ScanPattern scanClassesPattern
      An optional pattern for includes/excludes of classes in the classesDirectory
    • webAppSourceDirectory

      @Parameter(defaultValue="${project.basedir}/src/main/webapp", readonly=true) protected File webAppSourceDirectory
      Default root directory for all html/jsp etc files. Used to initialize webApp.setBaseResource().
  • Constructor Details

    • AbstractUnassembledWebAppMojo

      public AbstractUnassembledWebAppMojo()
  • Method Details

    • verifyPomConfiguration

      protected void verifyPomConfiguration() throws org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractWebAppMojo
      Used by subclasses.
      Overrides:
      verifyPomConfiguration in class AbstractWebAppMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • configureWebApp

      protected void configureWebApp() throws Exception
      Description copied from class: AbstractWebAppMojo
      Ensure there is a webapp, and that some basic defaults are applied if the user has not supplied them.
      Overrides:
      configureWebApp in class AbstractWebAppMojo
      Throws:
      Exception
    • configureUnassembledWebApp

      protected void configureUnassembledWebApp() throws Exception
      Configure a webapp that has not been assembled into a war.
      Throws:
      Exception
    • getWebInfLibArtifacts

      protected Collection<org.apache.maven.artifact.Artifact> getWebInfLibArtifacts()
      Find which dependencies are suitable for addition to the virtual WEB-INF lib.