public abstract class AbstractEarMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_XML_URI
The application XML URI
META-INF/application.xml |
protected org.codehaus.plexus.configuration.PlexusConfiguration |
artifactTypeMappings
The artifact type mappings.
|
protected String |
defaultLibBundleDir
The default bundle dir for libraries.
|
protected String |
encoding
Character encoding for the auto-generated deployment file(s).
|
protected String |
generatedDescriptorLocation
Directory where the deployment descriptor file(s) will be auto-generated.
|
static String |
META_INF
The
META-INF folder. |
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
static String |
UTF_8
UTF-8 encoding constant.
|
protected String |
version
The version of the application.xml to generate.
|
Constructor and Description |
---|
AbstractEarMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected List<EarModule> |
getAllEarModules() |
protected org.apache.maven.plugins.ear.JbossConfiguration |
getJbossConfiguration() |
protected List<EarModule> |
getModules() |
String |
getOutputFileNameMapping() |
protected org.apache.maven.project.MavenProject |
getProject() |
protected List<EarModule> |
getProvidedEarModules() |
protected File |
getWorkDirectory() |
public static final String APPLICATION_XML_URI
META-INF/application.xml
public static final String META_INF
META-INF
folder.public static final String UTF_8
@Parameter(defaultValue="7") protected String version
@Parameter(defaultValue="UTF-8") protected String encoding
@Parameter(defaultValue="${project.build.directory}") protected String generatedDescriptorLocation
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
@Parameter protected org.codehaus.plexus.configuration.PlexusConfiguration artifactTypeMappings
@Parameter protected String defaultLibBundleDir
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected List<EarModule> getModules()
earModules
. This corresponds to modules needed at runtime.protected List<EarModule> getAllEarModules()
allEarModules
. This corresponds to all modules (provided + compile + runtime).protected List<EarModule> getProvidedEarModules()
providedEarModules
. This corresponds to provided modules.protected org.apache.maven.project.MavenProject getProject()
MavenProject
protected File getWorkDirectory()
workDirectory
protected org.apache.maven.plugins.ear.JbossConfiguration getJbossConfiguration()
jbossConfiguration
public String getOutputFileNameMapping()
outputFileNameMapping
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.