public class JarModule extends AbstractEarModule
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.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Boolean |
includeInApplicationXml |
ALT_DD, altDeploymentDescriptor, bundleDir, bundleFileName, earExecutionContext, excluded, JAVA_MODULE, MODULE_ELEMENT, unpack| Constructor and Description |
|---|
JarModule()
Create an instance.
|
JarModule(org.apache.maven.artifact.Artifact a,
java.lang.String defaultLibBundleDir,
java.lang.Boolean includeInApplicationXml) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendModule(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String version,
java.lang.Boolean generateId)
Appends the XML representation of this module.
|
boolean |
changeManifestClasspath() |
java.lang.String |
getType()
Returns the type associated to the module.
|
void |
resolveArtifact(java.util.Set<org.apache.maven.artifact.Artifact> artifacts)
Resolves the
Artifact represented by the module. |
private void |
setLibBundleDir(java.lang.String defaultLibBundleDir) |
areNullOrEqual, cleanBundleDir, getAltDeploymentDescriptor, getArtifact, getArtifactId, getBundleDir, getBundleFileName, getClassifier, getGroupId, getLibDir, getModuleId, getOriginalBundleFileName, getUri, isExcluded, setEarExecutionContext, setUri, shouldUnpack, startModuleElement, toString, writeAltDeploymentDescriptorpublic JarModule()
public JarModule(org.apache.maven.artifact.Artifact a,
java.lang.String defaultLibBundleDir,
java.lang.Boolean includeInApplicationXml)
a - ArtifactdefaultLibBundleDir - The default library bundle directory.includeInApplicationXml - Include the application xml or not.public void appendModule(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String version,
java.lang.Boolean generateId)
writer - the writer to useversion - the version of the application.xml filegenerateId - whether an id should be generatedpublic void resolveArtifact(java.util.Set<org.apache.maven.artifact.Artifact> artifacts)
throws EarPluginException,
org.apache.maven.plugin.MojoFailureException
Artifact represented by the module. Note that the EarExecutionContext might be used
to customize further the resolution.resolveArtifact in interface EarModuleresolveArtifact in class AbstractEarModuleartifacts - the project's artifactsEarPluginException - if the artifact could not be resolvedorg.apache.maven.plugin.MojoFailureException - if an unexpected error occurredpublic java.lang.String getType()
private void setLibBundleDir(java.lang.String defaultLibBundleDir)
public boolean changeManifestClasspath()
changeManifestClasspath in interface EarModulechangeManifestClasspath in class AbstractEarModuletrue