Package org.eclipse.jetty.maven.plugin
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
Base class for all goals that operate on unassembled webapps.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.maven.plugin.AbstractWebAppMojo
AbstractWebAppMojo.DeploymentMode
-
Field Summary
Modifier and TypeFieldDescriptionprotected File
The directory containing generated classes.protected ScanPattern
An optional pattern for includes/excludes of classes in the classesDirectoryprotected ScanPattern
An optional pattern for includes/excludes of classes in the testClassesDirectoryprotected File
The directory containing generated test classes.protected File
Default root directory for all html/jsp etc files.protected File
The default location of the web.xml file.Fields inherited from class org.eclipse.jetty.maven.plugin.AbstractWebAppMojo
contextHandlers, contextXml, deployMode, env, excludedGoals, execution, FAKE_WEBAPP, forkWebXml, httpConnector, JETTY_HOME_ARTIFACTID, JETTY_HOME_GROUPID, jettyBase, jettyHome, jettyOptions, jettyProperties, jettyXmls, jvmArgs, loginServices, mavenProjectHelper, maxChildStartCheckMs, maxChildStartChecks, mergedSystemProperties, modules, originalBaseResource, plugin, pluginArtifacts, project, projectArtifacts, providedJars, reactorProjects, requestLog, scanTargetPatterns, server, skip, stopKey, stopPort, supportedPackagings, systemProperties, systemPropertiesFile, target, useProvidedScope, useTestScope, warArtifacts, webApp
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Configure a webapp that has not been assembled into a war.protected void
Ensure there is a webapp, and that some basic defaults are applied if the user has not supplied them.protected Collection<org.apache.maven.artifact.Artifact>
Find which dependencies are suitable for addition to the virtual WEB-INF lib.protected void
Used by subclasses.Methods inherited from class org.eclipse.jetty.maven.plugin.AbstractWebAppMojo
augmentPluginClasspath, configureScanTargetPatterns, configureSystemProperties, execute, findJettyWebXmlFile, getContainerClassPath, getJettyOutputFile, getProjectName, getProvidedJars, isExcludedGoal, isPackagingSupported, isPluginArtifact, mergeSystemProperties, newJettyEmbedder, newJettyForker, newJettyHomeForker, startJetty, startJettyEmbedded, startJettyForked, startJettyHome
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
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 testClassesDirectoryThe directory containing generated test classes. -
scanTestClassesPattern
An optional pattern for includes/excludes of classes in the testClassesDirectory -
classesDirectory
@Parameter(defaultValue="${project.build.outputDirectory}", required=true) protected File classesDirectoryThe directory containing generated classes. -
scanClassesPattern
An optional pattern for includes/excludes of classes in the classesDirectory -
webAppSourceDirectory
@Parameter(defaultValue="${project.basedir}/src/main/webapp", readonly=true) protected File webAppSourceDirectoryDefault 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.MojoExecutionExceptionDescription copied from class:AbstractWebAppMojo
Used by subclasses.- Overrides:
verifyPomConfiguration
in classAbstractWebAppMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
configureWebApp
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 classAbstractWebAppMojo
- Throws:
Exception
-
configureUnassembledWebApp
Configure a webapp that has not been assembled into a war.- Throws:
Exception
-
getWebInfLibArtifacts
Find which dependencies are suitable for addition to the virtual WEB-INF lib.
-