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 StringThe application XML URIMETA-INF/application.xmlprotected org.codehaus.plexus.configuration.PlexusConfigurationThe artifact type mappings.protected StringThe default bundle dir for libraries.protected StringCharacter encoding for the auto-generated deployment file(s).protected StringDirectory where the deployment descriptor file(s) will be auto-generated.static final StringTheMETA-INFfolder.protected org.apache.maven.project.MavenProjectThe maven project.static final StringUTF-8 encoding constant.protected StringThe schema version of generatedapplication.xmldescriptor.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-INFfolder.- See Also:
-
UTF_8
UTF-8 encoding constant.- See Also:
-
version
The schema version of generatedapplication.xmldescriptor.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.MojoExecutionExceptionorg.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
-