org.apache.maven.plugin.ear
Class WebModule
java.lang.Object
org.apache.maven.plugin.ear.AbstractEarModule
org.apache.maven.plugin.ear.WebModule
- All Implemented Interfaces:
- EarModule
public class WebModule
- extends AbstractEarModule
The EarModule
implementation for a Web application module.
- Version:
- $Id: WebModule.java 728546 2008-12-21 22:56:51Z bentmann $
- Author:
- Stephane Nicoll
Methods inherited from class org.apache.maven.plugin.ear.AbstractEarModule |
getAltDeploymentDescriptor, getArtifact, getArtifactId, getBundleDir, getBundleFileName, getClassifier, getGroupId, getUri, isExcluded, setEarExecutionContext, shouldUnpack, toString, writeAltDeploymentDescriptor |
WEB_MODULE
protected static final String WEB_MODULE
- See Also:
- Constant Field Values
WEB_URI_FIELD
protected static final String WEB_URI_FIELD
- See Also:
- Constant Field Values
CONTEXT_ROOT_FIELD
protected static final String CONTEXT_ROOT_FIELD
- See Also:
- Constant Field Values
WebModule
public WebModule()
WebModule
public WebModule(org.apache.maven.artifact.Artifact a)
appendModule
public void appendModule(XMLWriter writer,
String version)
- Description copied from interface:
EarModule
- Appends the XML representation of this module.
- Parameters:
writer
- the writer to useversion
- the version of the application.xml file
resolveArtifact
public void resolveArtifact(Set artifacts)
throws EarPluginException,
org.apache.maven.plugin.MojoFailureException
- Description copied from interface:
EarModule
- Resolves the
Artifact
represented by the module. Note
that the EarExecutionContext
might be used to customiz
further the resolution.
- Specified by:
resolveArtifact
in interface EarModule
- Overrides:
resolveArtifact
in class AbstractEarModule
- Parameters:
artifacts
- the project's artifacts
- Throws:
EarPluginException
- if the artifact could not be resolved
org.apache.maven.plugin.MojoFailureException
- if an unexpected error occured
getContextRoot
public String getContextRoot()
- Returns the context root to use for the web module.
Note that this might return null till the
artifact has been resolved.
- Returns:
- the context root
getType
public String getType()
- Description copied from interface:
EarModule
- Returns the type associated to the module.
- Returns:
- the artifact's type of the module
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.