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 StringThe DEFAULT library folder.static final StringThe empty folder.static final StringThe 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, versionFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected voidGenerates the JBoss deployment descriptor.protected voidgenerateStandardDeploymentDescriptor(JavaEEVersion javaEEVersion) Generates the deployment descriptor.Methods inherited from class org.apache.maven.plugins.ear.AbstractEarMojo
getAllEarModules, getJbossConfiguration, getModules, getOutputFileNameMapping, getProject, getProvidedEarModules, getWorkDirectoryMethods 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:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractEarMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.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
-