org.apache.maven.plugin.ear
Class JarModule
java.lang.Object
org.apache.maven.plugin.ear.AbstractEarModule
org.apache.maven.plugin.ear.JarModule
- All Implemented Interfaces:
- EarModule
- Direct Known Subclasses:
- EjbClientModule, JavaModule
public class JarModule
- extends AbstractEarModule
The EarModule
implementation for a non J2EE module such as
third party libraries.
Such module is not incorporated in the generated application.xml
but some application servers support it. To include it in the generated
deployment descriptor anyway, set the includeInApplicationXml
boolean flag.
This class deprecates JavaModule
.
- Version:
- $Id: JarModule.java 746754 2009-02-22 16:21:05Z snicoll $
- Author:
- Stephane Nicoll
Constructor Summary |
JarModule()
|
JarModule(org.apache.maven.artifact.Artifact a,
java.lang.String defaultLibBundleDir,
java.lang.Boolean includeInApplicationXml)
|
Method Summary |
void |
appendModule(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String version)
Appends the XML representation of this module. |
java.lang.String |
getType()
Returns the type associated to the module. |
void |
resolveArtifact(java.util.Set artifacts)
Resolves the Artifact represented by the module. |
Methods inherited from class org.apache.maven.plugin.ear.AbstractEarModule |
getAltDeploymentDescriptor, getArtifact, getArtifactId, getBundleDir, getBundleFileName, getClassifier, getGroupId, getUri, isExcluded, shouldUnpack, toString, writeAltDeploymentDescriptor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JarModule
public JarModule()
JarModule
public JarModule(org.apache.maven.artifact.Artifact a,
java.lang.String defaultLibBundleDir,
java.lang.Boolean includeInApplicationXml)
appendModule
public void appendModule(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.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(java.util.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
getType
public java.lang.String getType()
- Description copied from interface:
EarModule
- Returns the type associated to the module.
- Returns:
- the artifact's type of the module
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.