org.apache.maven.plugin.ear
Class GenerateApplicationXmlMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.ear.AbstractEarMojo
          extended by org.apache.maven.plugin.ear.GenerateApplicationXmlMojo
All Implemented Interfaces:
ContextEnabled, 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).

Version:
$Id: GenerateApplicationXmlMojo.java 1377814 2012-08-27 20:08:01Z snicoll $
Author:
Stephane Nicoll

Field Summary
static String DEFAULT
           
static String EMPTY
           
static String NONE
           
 
Fields inherited from class org.apache.maven.plugin.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
GenerateApplicationXmlMojo()
           
 
Method Summary
 void execute()
           
protected  void generateJbossDeploymentDescriptor()
          Generates the jboss deployment descriptor.
protected  void generateStandardDeploymentDescriptor(JavaEEVersion javaEEVersion)
          Generates the deployment descriptor.
 
Methods inherited from class org.apache.maven.plugin.ear.AbstractEarMojo
getJbossConfiguration, getModules, getProject, getWorkDirectory
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final String DEFAULT
See Also:
Constant Field Values

EMPTY

public static final String EMPTY
See Also:
Constant Field Values

NONE

public static final String NONE
See Also:
Constant Field Values
Constructor Detail

GenerateApplicationXmlMojo

public GenerateApplicationXmlMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Specified by:
execute in interface Mojo
Overrides:
execute in class AbstractEarMojo
Throws:
MojoExecutionException
MojoFailureException

generateStandardDeploymentDescriptor

protected void generateStandardDeploymentDescriptor(JavaEEVersion javaEEVersion)
                                             throws EarPluginException
Generates the deployment descriptor.

Throws:
EarPluginException

generateJbossDeploymentDescriptor

protected void generateJbossDeploymentDescriptor()
                                          throws EarPluginException
Generates the jboss deployment descriptor.

Throws:
EarPluginException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.