public interface EarModule
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. |
boolean |
changeManifestClasspath() |
String |
getAltDeploymentDescriptor()
The alt-dd element specifies an optional URI to the post-assembly version of the deployment descriptor file for a
particular Java EE module.
|
org.apache.maven.artifact.Artifact |
getArtifact()
Returns the
Artifact representing this module. |
String |
getBundleFileName()
Returns the bundle file name.
|
String |
getLibDir() |
String |
getType()
Returns the type associated to the module.
|
String |
getUri()
Returns the
URI for this module. |
boolean |
isClassPathItem()
If module should be included into the Class-Path entry of MANIFEST.mf.
|
boolean |
isExcluded()
Specify whether this module should be excluded or not.
|
void |
resolveArtifact(Set<org.apache.maven.artifact.Artifact> artifacts)
Resolves the
Artifact represented by the module. |
void |
setEarExecutionContext(EarExecutionContext earExecutionContext) |
Boolean |
shouldUnpack()
Specify whether this module should be unpacked in the EAR archive or not.
|
org.apache.maven.artifact.Artifact getArtifact()
Artifact
representing this module.
Note that this might return null
till the module has been resolved.resolveArtifact(java.util.Set)
String getUri()
URI
for this module.URI
String getType()
boolean isExcluded()
Boolean shouldUnpack()
String getAltDeploymentDescriptor()
void appendModule(org.codehaus.plexus.util.xml.XMLWriter writer, String version, Boolean generateId)
XML
representation of this module.writer
- the writer to useversion
- the version of the application.xml
filegenerateId
- whether an id should be generatedvoid resolveArtifact(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.artifacts
- the project's artifactsEarPluginException
- if the artifact could not be resolvedorg.apache.maven.plugin.MojoFailureException
- if an unexpected error occurredvoid setEarExecutionContext(EarExecutionContext earExecutionContext)
earExecutionContext
- The execution context.boolean changeManifestClasspath()
String getLibDir()
null
, which means that module doesn't contain any packaged libraries.String getBundleFileName()
null
, the artifact's file name is returned.boolean isClassPathItem()
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.