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:
ContextEnabled, Mojo
Direct Known Subclasses:
EarMojo, GenerateApplicationXmlMojo

public abstract class AbstractEarMojo
extends AbstractMojo

A base class for EAR-processing related tasks.

Version:
$Id: AbstractEarMojo.java 1359710 2012-07-10 14:53:53Z tchemit $
Author:
Stephane Nicoll

Field Summary
static String APPLICATION_XML_URI
           
protected  org.codehaus.plexus.configuration.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  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<EarModule> getModules()
           
protected  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

@Parameter(defaultValue="1.3")
protected String version
The version of the application.xml to generate. Valid values are 1.3, 1.4, 5 and 6.


encoding

@Parameter(defaultValue="UTF-8")
protected String encoding
Character encoding for the auto-generated deployment file(s).


generatedDescriptorLocation

@Parameter(defaultValue="${project.build.directory}")
protected String generatedDescriptorLocation
Directory where the deployment descriptor file(s) will be auto-generated.


project

@Component
protected MavenProject project
The maven project.


artifactTypeMappings

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


defaultLibBundleDir

@Parameter(alias="defaultJavaBundleDir")
protected String defaultLibBundleDir
The default bundle dir for libraries.

Constructor Detail

AbstractEarMojo

public AbstractEarMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Throws:
MojoExecutionException
MojoFailureException

getModules

protected List<EarModule> getModules()

getProject

protected MavenProject getProject()

getWorkDirectory

protected File getWorkDirectory()

getJbossConfiguration

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


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