Class AbstractEarMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.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.
Author:
Stephane Nicoll
  • Field Details

    • APPLICATION_XML_URI

      public static final String APPLICATION_XML_URI
      The application XML URI META-INF/application.xml
      See Also:
    • META_INF

      public static final String META_INF
      The META-INF folder.
      See Also:
    • UTF_8

      public static final String UTF_8
      UTF-8 encoding constant.
      See Also:
    • version

      @Parameter(defaultValue="7") protected String version
      The schema version of generated application.xml descriptor.

      Valid values are 1.3, 1.4, 5, 6, 7, 8, 9, 10 and 11.

      See: Jakarta EE XML Schemas

    • 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

      @Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
      The maven project.
    • artifactTypeMappings

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

      @Parameter protected String defaultLibBundleDir
      The default bundle dir for libraries.
  • Constructor Details

    • AbstractEarMojo

      public AbstractEarMojo()
  • Method Details

    • 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<EarModule> getModules()
      Returns:
      the list of earModules. This corresponds to modules needed at runtime.
    • getAllEarModules

      protected List<EarModule> getAllEarModules()
      Returns:
      the list of allEarModules. This corresponds to all modules (provided + compile + runtime).
    • getProvidedEarModules

      protected List<EarModule> getProvidedEarModules()
      Returns:
      the list of providedEarModules. This corresponds to provided modules.
    • getProject

      protected org.apache.maven.project.MavenProject getProject()
      Returns:
      MavenProject
    • getWorkDirectory

      protected File getWorkDirectory()
      Returns:
      workDirectory
    • getJbossConfiguration

      protected org.apache.maven.plugins.ear.JbossConfiguration getJbossConfiguration()
      Returns:
      jbossConfiguration
    • getOutputFileNameMapping

      public String getOutputFileNameMapping()
      Returns:
      outputFileNameMapping