Package org.apache.maven.plugins.ear
Class AbstractEarMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.ear.AbstractEarMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
EarMojo
,GenerateApplicationXmlMojo
public abstract class AbstractEarMojo
extends org.apache.maven.plugin.AbstractMojo
A base class for EAR-processing related tasks.
- Author:
- Stephane Nicoll
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The application XML URIMETA-INF/application.xml
protected org.codehaus.plexus.configuration.PlexusConfiguration
The artifact type mappings.protected String
The default bundle dir for libraries.protected String
Character encoding for the auto-generated deployment file(s).protected String
Directory where the deployment descriptor file(s) will be auto-generated.static final String
TheMETA-INF
folder.protected org.apache.maven.project.MavenProject
The maven project.static final String
UTF-8 encoding constant.protected String
The schema version of generatedapplication.xml
descriptor.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
APPLICATION_XML_URI
The application XML URIMETA-INF/application.xml
- See Also:
-
META_INF
TheMETA-INF
folder.- See Also:
-
UTF_8
UTF-8 encoding constant.- See Also:
-
version
The schema version of generatedapplication.xml
descriptor.Valid values are 1.3, 1.4, 5, 6, 7, 8, 9, 10 and 11.
-
encoding
Character encoding for the auto-generated deployment file(s). -
generatedDescriptorLocation
Directory where the deployment descriptor file(s) will be auto-generated. -
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject projectThe maven project. -
artifactTypeMappings
@Parameter protected org.codehaus.plexus.configuration.PlexusConfiguration artifactTypeMappingsThe artifact type mappings. -
defaultLibBundleDir
The default bundle dir for libraries.
-
-
Constructor Details
-
AbstractEarMojo
public AbstractEarMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getModules
- Returns:
- the list of
earModules
. This corresponds to modules needed at runtime.
-
getAllEarModules
- Returns:
- the list of
allEarModules
. This corresponds to all modules (provided + compile + runtime).
-
getProvidedEarModules
- Returns:
- the list of
providedEarModules
. This corresponds to provided modules.
-
getProject
protected org.apache.maven.project.MavenProject getProject()- Returns:
MavenProject
-
getWorkDirectory
- Returns:
workDirectory
-
getJbossConfiguration
protected org.apache.maven.plugins.ear.JbossConfiguration getJbossConfiguration()- Returns:
jbossConfiguration
-
getOutputFileNameMapping
- Returns:
outputFileNameMapping
-