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 746754 2009-02-22 16:21:05Z snicoll $
Author:
Stephane Nicoll

Field Summary
static java.lang.String APPLICATION_XML_URI
           
protected  org.codehaus.plexus.configuration.PlexusConfiguration artifactTypeMappings
          The artifact type mappings.
protected  java.lang.String defaultLibBundleDir
          The default bundle dir for libraries.
protected  java.lang.String encoding
          Character encoding for the auto-generated deployment file(s).
protected  java.lang.String generatedDescriptorLocation
          Directory where the deployment descriptor file(s) will be auto-generated.
static java.lang.String META_INF
           
protected  org.apache.maven.project.MavenProject project
          The maven project.
static java.lang.String UTF_8
           
protected  java.lang.String version
          The version of the application.xml to generate.
static java.lang.String VERSION_1_3
           
static java.lang.String VERSION_1_4
           
static java.lang.String VERSION_5
           
 
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  java.util.List getModules()
           
protected  org.apache.maven.project.MavenProject getProject()
           
protected  java.io.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

VERSION_1_3

public static final java.lang.String VERSION_1_3
See Also:
Constant Field Values

VERSION_1_4

public static final java.lang.String VERSION_1_4
See Also:
Constant Field Values

VERSION_5

public static final java.lang.String VERSION_5
See Also:
Constant Field Values

APPLICATION_XML_URI

public static final java.lang.String APPLICATION_XML_URI
See Also:
Constant Field Values

META_INF

public static final java.lang.String META_INF
See Also:
Constant Field Values

UTF_8

public static final java.lang.String UTF_8
See Also:
Constant Field Values

version

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

Is defined by:
default-value:
1.3

encoding

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

Is defined by:
default-value:
UTF-8

generatedDescriptorLocation

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

Is defined by:
expression:
${project.build.directory}

project

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

Is defined by:
expression:
${project}
Is readonly.
Is required.

artifactTypeMappings

protected org.codehaus.plexus.configuration.PlexusConfiguration artifactTypeMappings
The artifact type mappings.

Is defined by:

defaultLibBundleDir

protected java.lang.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 java.util.List getModules()

getProject

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

getWorkDirectory

protected java.io.File getWorkDirectory()

getJbossConfiguration

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


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