public abstract class AbstractEarMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<EarModule> |
allModules |
static java.lang.String |
APPLICATION_XML_URI
The application XML URI
META-INF/application.xml |
protected org.codehaus.plexus.configuration.PlexusConfiguration |
artifactTypeMappings
The artifact type mappings.
|
protected java.lang.String |
defaultLibBundleDir
The default bundle dir for libraries.
|
private java.util.List<EarModule> |
earModules |
protected java.lang.String |
encoding
Character encoding for the auto-generated deployment file(s).
|
private java.lang.String |
fileNameMapping
The file name mapping to use for all dependencies included in the EAR file.
|
protected java.lang.String |
generatedDescriptorLocation
Directory where the deployment descriptor file(s) will be auto-generated.
|
private java.lang.Boolean |
includeLibInApplicationXml
Should libraries be added in application.xml
|
private org.codehaus.plexus.configuration.PlexusConfiguration |
jboss
The JBoss specific configuration.
|
private JbossConfiguration |
jbossConfiguration |
private java.lang.String |
mainArtifactId
The id to use to define the main artifact (e.g.
|
private org.apache.maven.shared.filtering.MavenResourcesFiltering |
mavenResourcesFiltering |
static java.lang.String |
META_INF
The
META-INF folder. |
private EarModule[] |
modules
The ear modules configuration.
|
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
private java.io.File |
tempFolder
temp folder location.
|
private java.lang.Boolean |
useBaseVersion
|
static java.lang.String |
UTF_8
UTF-8 encoding constant.
|
protected java.lang.String |
version
The version of the application.xml to generate.
|
private java.io.File |
workDirectory
Directory that resources are copied to during the build.
|
| Constructor and Description |
|---|
AbstractEarMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected JbossConfiguration |
getJbossConfiguration() |
protected java.util.List<EarModule> |
getModules() |
protected org.apache.maven.project.MavenProject |
getProject() |
java.io.File |
getTempFolder() |
protected java.io.File |
getWorkDirectory() |
private void |
initializeJbossConfiguration()
Initializes the JBoss configuration.
|
private static boolean |
isArtifactRegistered(org.apache.maven.artifact.Artifact a,
java.util.List<EarModule> currentList) |
public static final java.lang.String APPLICATION_XML_URI
META-INF/application.xmlpublic static final java.lang.String META_INF
META-INF folder.public static final java.lang.String UTF_8
@Parameter(defaultValue="1.3") protected java.lang.String version
@Parameter(defaultValue="UTF-8") protected java.lang.String encoding
@Parameter(defaultValue="${project.build.directory}")
protected java.lang.String generatedDescriptorLocation
@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
@Parameter private EarModule[] modules
@Parameter protected org.codehaus.plexus.configuration.PlexusConfiguration artifactTypeMappings
@Parameter protected java.lang.String defaultLibBundleDir
@Parameter(defaultValue="false") private java.lang.Boolean includeLibInApplicationXml
@Parameter private java.lang.String fileNameMapping
standard, {code no-version}, full, no-version-for-ejb.
The standard means the filename is the artifactId incl. the version of the artifact.
The no-version means the files is only the artifactId without the version.
The full means the filename is the groupId+artifactId+version of the artifact.
The no-version-for-ejb means the filename is the artifactId without the version in case of EJB
type.@Parameter private java.lang.Boolean useBaseVersion
fileNameMapping with versions, either use the baseVersion or the version.
When the artifact is a SNAPSHOT, version will always return a value with a -SNAPSHOT postfix
instead of the possible timestamped value.@Parameter(defaultValue="${project.build.directory}/${project.build.finalName}",
required=true)
private java.io.File workDirectory
@Parameter private org.codehaus.plexus.configuration.PlexusConfiguration jboss
@Parameter private java.lang.String mainArtifactId
@Parameter(defaultValue="${project.build.directory}",
required=true)
private java.io.File tempFolder
@Component private org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering
private java.util.List<EarModule> earModules
private java.util.List<EarModule> allModules
private JbossConfiguration jbossConfiguration
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected java.util.List<EarModule> getModules()
earModules.protected org.apache.maven.project.MavenProject getProject()
MavenProjectprotected java.io.File getWorkDirectory()
workDirectoryprotected JbossConfiguration getJbossConfiguration()
jbossConfigurationpublic java.io.File getTempFolder()
tempFolderprivate static boolean isArtifactRegistered(org.apache.maven.artifact.Artifact a,
java.util.List<EarModule> currentList)
private void initializeJbossConfiguration()
throws EarPluginException
EarPluginException - if the configuration is invalid