Package org.apache.maven.plugins.ear
Class GenerateApplicationXmlMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.ear.AbstractEarMojo
org.apache.maven.plugins.ear.GenerateApplicationXmlMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generate-application-xml",
defaultPhase=GENERATE_RESOURCES,
threadSafe=true,
requiresDependencyResolution=TEST)
public class GenerateApplicationXmlMojo
extends AbstractEarMojo
Generates the EAR deployment descriptor file(s).
- Author:
- Stephane Nicoll
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The DEFAULT library folder.static final String
The empty folder.static final String
The NONE not existent folder.Fields inherited from class org.apache.maven.plugins.ear.AbstractEarMojo
APPLICATION_XML_URI, artifactTypeMappings, defaultLibBundleDir, encoding, generatedDescriptorLocation, META_INF, project, UTF_8, version
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
protected void
Generates the JBoss deployment descriptor.protected void
generateStandardDeploymentDescriptor
(JavaEEVersion javaEEVersion) Generates the deployment descriptor.Methods inherited from class org.apache.maven.plugins.ear.AbstractEarMojo
getAllEarModules, getJbossConfiguration, getModules, getOutputFileNameMapping, getProject, getProvidedEarModules, getWorkDirectory
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
DEFAULT
The DEFAULT library folder.- See Also:
-
EMPTY
The empty folder.- See Also:
-
NONE
The NONE not existent folder.- See Also:
-
-
Constructor Details
-
GenerateApplicationXmlMojo
public GenerateApplicationXmlMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classAbstractEarMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
generateStandardDeploymentDescriptor
protected void generateStandardDeploymentDescriptor(JavaEEVersion javaEEVersion) throws EarPluginException Generates the deployment descriptor.- Parameters:
javaEEVersion
-JavaEEVersion
- Throws:
EarPluginException
- if the configuration is invalid
-
generateJbossDeploymentDescriptor
Generates the JBoss deployment descriptor.- Throws:
EarPluginException
- if the configuration is invalid
-