Class AbstractUnassembledWebAppMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.jetty.ee10.maven.plugin.AbstractWebAppMojo
org.eclipse.jetty.ee10.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.ee10.maven.plugin.AbstractWebAppMojo
AbstractWebAppMojo.DeploymentMode -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe directory containing generated classes.protected org.eclipse.jetty.maven.ScanPatternAn optional pattern for includes/excludes of classes in the classesDirectoryprotected org.eclipse.jetty.maven.ScanPatternAn optional pattern for includes/excludes of classes in the testClassesDirectoryprotected FileThe directory containing generated test classes.protected FileDefault root directory for all html/jsp etc files.protected FileThe default location of the web.xml file.Fields inherited from class org.eclipse.jetty.ee10.maven.plugin.AbstractWebAppMojo
contextHandlers, contextXml, deployMode, env, excludedGoals, execution, FAKE_WEBAPP, forkWebXml, httpConnector, JETTY_HOME_ARTIFACTID, JETTY_HOME_GROUPID, jettyBase, jettyHome, jettyHomeZip, 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, webAppFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConfigure a webapp that has not been assembled into a war.protected voidEnsure 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 voidUsed by subclasses.Methods inherited from class org.eclipse.jetty.ee10.maven.plugin.AbstractWebAppMojo
augmentPluginClasspath, configureScanTargetPatterns, configureSystemProperties, execute, findJettyWebXmlFile, getContainerClassPath, getJettyOutputFile, getProjectName, getProvidedJars, isExcludedGoal, isPackagingSupported, isPluginArtifact, mergeSystemProperties, newJettyEmbedder, newJettyForker, newJettyHomeForker, startJetty, startJettyEmbedded, startJettyForked, startJettyHomeMethods 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
@Parameter protected org.eclipse.jetty.maven.ScanPattern scanTestClassesPatternAn 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
@Parameter protected org.eclipse.jetty.maven.ScanPattern scanClassesPatternAn 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:AbstractWebAppMojoUsed by subclasses.- Overrides:
verifyPomConfigurationin classAbstractWebAppMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- if there is a mojo execution problem
-
configureWebApp
Description copied from class:AbstractWebAppMojoEnsure there is a webapp, and that some basic defaults are applied if the user has not supplied them.- Overrides:
configureWebAppin classAbstractWebAppMojo- Throws:
Exception
-
configureUnassembledWebApp
Configure a webapp that has not been assembled into a war.- Throws:
IOException- if there is an IO problemException
-
getWebInfLibArtifacts
Find which dependencies are suitable for addition to the virtual WEB-INF lib.
-