org.apache.maven.plugin.ear
Class AbstractEarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.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.

Version:
$Id: AbstractEarMojo.java 1050900 2010-12-19 17:10:52Z snicoll $
Author:
Stephane Nicoll

Field Summary
static String APPLICATION_XML_URI
           
protected  PlexusConfiguration artifactTypeMappings
          The artifact type mappings.
protected  String defaultLibBundleDir
          The default bundle dir for libraries.
protected  String encoding
          Character encoding for the auto-generated deployment file(s).
protected  String generatedDescriptorLocation
          Directory where the deployment descriptor file(s) will be auto-generated.
static String META_INF
           
protected  org.apache.maven.project.MavenProject project
          The maven project.
static String UTF_8
           
protected  String version
          The version of the application.xml to generate.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractEarMojo()
           
 
Method Summary
 void execute()
           
protected  org.apache.maven.plugin.ear.JbossConfiguration getJbossConfiguration()
           
protected  List getModules()
           
protected  org.apache.maven.project.MavenProject getProject()
           
protected  File 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

APPLICATION_XML_URI

public static final String APPLICATION_XML_URI
See Also:
Constant Field Values

META_INF

public static final String META_INF
See Also:
Constant Field Values

UTF_8

public static final String UTF_8
See Also:
Constant Field Values

version

protected String version
The version of the application.xml to generate. Valid values are 1.3, 1.4, 5 and 6.

Is defined by:
default-value:
1.3

encoding

protected String encoding
Character encoding for the auto-generated deployment file(s).

Is defined by:
default-value:
UTF-8

generatedDescriptorLocation

protected String generatedDescriptorLocation
Directory where the deployment descriptor file(s) will be auto-generated.

Is defined by:
default-value:
${project.build.directory}

project

protected org.apache.maven.project.MavenProject project
The maven project.

Is defined by:
default-value:
${project}
Is readonly.
Is required.

artifactTypeMappings

protected PlexusConfiguration artifactTypeMappings
The artifact type mappings.

Is defined by:

defaultLibBundleDir

protected String defaultLibBundleDir
The default bundle dir for libraries.

Is defined by:
alias:
defaultJavaBundleDir
Constructor Detail

AbstractEarMojo

public AbstractEarMojo()
Method Detail

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

protected List getModules()

getProject

protected org.apache.maven.project.MavenProject getProject()

getWorkDirectory

protected File getWorkDirectory()

getJbossConfiguration

protected org.apache.maven.plugin.ear.JbossConfiguration getJbossConfiguration()


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