public class WebModule extends AbstractEarModule
EarModule
implementation for a Web application module.Modifier and Type | Field and Description |
---|---|
protected static String |
CONTEXT_ROOT_FIELD |
protected static String |
WEB_MODULE |
protected static String |
WEB_URI_FIELD |
ALT_DD, altDeploymentDescriptor, bundleDir, bundleFileName, earExecutionContext, excluded, JAVA_MODULE, MODULE_ELEMENT, unpack
Constructor and Description |
---|
WebModule() |
WebModule(org.apache.maven.artifact.Artifact a) |
Modifier and Type | Method and Description |
---|---|
void |
appendModule(org.codehaus.plexus.util.xml.XMLWriter writer,
String version,
Boolean generateId)
Appends the XML representation of this module.
|
String |
getContextRoot()
Returns the context root to use for the web module.
|
String |
getLibDir() |
String |
getType()
Returns the type associated to the module.
|
void |
resolveArtifact(Set<org.apache.maven.artifact.Artifact> artifacts)
Resolves the
Artifact represented by the module. |
changeManifestClasspath, getAltDeploymentDescriptor, getArtifact, getArtifactId, getBundleDir, getBundleFileName, getClassifier, getGroupId, getModuleId, getUri, isExcluded, setEarExecutionContext, shouldUnpack, startModuleElement, toString, writeAltDeploymentDescriptor
protected static final String WEB_MODULE
protected static final String WEB_URI_FIELD
protected static final String CONTEXT_ROOT_FIELD
public WebModule()
public WebModule(org.apache.maven.artifact.Artifact a)
public void appendModule(org.codehaus.plexus.util.xml.XMLWriter writer, String version, Boolean generateId)
EarModule
writer
- the writer to useversion
- the version of the application.xml filegenerateId
- whether an id should be generatedpublic void resolveArtifact(Set<org.apache.maven.artifact.Artifact> artifacts) throws EarPluginException, org.apache.maven.plugin.MojoFailureException
AbstractEarModule
Artifact
represented by the module. Note
that the EarExecutionContext
might be used to customize
further the resolution.resolveArtifact
in interface EarModule
resolveArtifact
in class AbstractEarModule
artifacts
- the project's artifactsEarPluginException
- if the artifact could not be resolvedorg.apache.maven.plugin.MojoFailureException
- if an unexpected error occurredpublic String getContextRoot()
public String getType()
EarModule
public String getLibDir()
getLibDir
in interface EarModule
getLibDir
in class AbstractEarModule
Copyright © 2002-2017 The Apache Software Foundation. All Rights Reserved.