Package org.apache.maven.plugins.ear
Class JarModule
java.lang.Object
org.apache.maven.plugins.ear.AbstractEarModule
org.apache.maven.plugins.ear.JarModule
- All Implemented Interfaces:
 EarModule
- Direct Known Subclasses:
 EjbClientModule
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.
 
- Author:
 - Stephane Nicoll
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault type of the artifact of a non Java EE module such as third party library.Fields inherited from class org.apache.maven.plugins.ear.AbstractEarModule
ALT_DD, altDeploymentDescriptor, bundleDir, bundleFileName, classPathItem, earExecutionContext, excluded, JAVA_MODULE, libDirectory, MODULE_ELEMENT, type, unpack - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidappendModule(org.codehaus.plexus.util.xml.XMLWriter writer, String version, Boolean generateId) Appends theXMLrepresentation of this module.booleanvoidresolveArtifact(Set<org.apache.maven.artifact.Artifact> artifacts) Resolves theArtifactrepresented by the module.Methods inherited from class org.apache.maven.plugins.ear.AbstractEarModule
getAltDeploymentDescriptor, getArtifact, getArtifactId, getBundleDir, getBundleFileName, getClassifier, getGroupId, getLibDir, getModuleId, getType, getUri, isClassPathItem, isExcluded, setEarExecutionContext, shouldUnpack, startModuleElement, toString, writeAltDeploymentDescriptor 
- 
Field Details
- 
DEFAULT_ARTIFACT_TYPE
Default type of the artifact of a non Java EE module such as third party library.- See Also:
 
 
 - 
 - 
Constructor Details
- 
JarModule
public JarModule()Create an instance. - 
JarModule
public JarModule(org.apache.maven.artifact.Artifact a, String defaultLibBundleDir, Boolean includeInApplicationXml) - Parameters:
 a-ArtifactdefaultLibBundleDir- The default library bundle directory.includeInApplicationXml- Include the application xml or not.
 
 - 
 - 
Method Details
- 
appendModule
public void appendModule(org.codehaus.plexus.util.xml.XMLWriter writer, String version, Boolean generateId) Appends theXMLrepresentation of this module.- Parameters:
 writer- the writer to useversion- the version of theapplication.xmlfilegenerateId- whether an id should be generated
 - 
resolveArtifact
public void resolveArtifact(Set<org.apache.maven.artifact.Artifact> artifacts) throws EarPluginException, org.apache.maven.plugin.MojoFailureException Resolves theArtifactrepresented by the module. Note that theEarExecutionContextmight be used to customize further the resolution.- Specified by:
 resolveArtifactin interfaceEarModule- Overrides:
 resolveArtifactin classAbstractEarModule- Parameters:
 artifacts- the project's artifacts- Throws:
 EarPluginException- if the artifact could not be resolvedorg.apache.maven.plugin.MojoFailureException- if an unexpected error occurred
 - 
changeManifestClasspath
public boolean changeManifestClasspath()- Specified by:
 changeManifestClasspathin interfaceEarModule- Overrides:
 changeManifestClasspathin classAbstractEarModule- Returns:
 - always 
true 
 
 -