Class EjbMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.ejb.EjbMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="ejb", requiresDependencyResolution=RUNTIME, threadSafe=true, defaultPhase=PACKAGE) public class EjbMojo extends org.apache.maven.plugin.AbstractMojo
Build an EJB (and optional client) from the current project.
Version:
$Id$
Author:
Emmanuel Venisse
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Default value for clientClassifier
    static final String
    Default value for ejbJar.
    protected String
    An expression preceded with this String won't be interpolated.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    EjbMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.apache.maven.shared.filtering.MavenFileFilter mavenFileFilter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Generates an EJB jar and optionally an ejb-client jar.
     
     
    org.apache.maven.project.MavenProject
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_CLIENT_CLASSIFIER

      public static final String DEFAULT_CLIENT_CLASSIFIER
      Default value for clientClassifier
      See Also:
    • DEFAULT_EJBJAR

      public static final String DEFAULT_EJBJAR
      Default value for ejbJar.
      See Also:
    • escapeString

      @Parameter protected String escapeString
      An expression preceded with this String won't be interpolated. \${foo} will be replaced with ${foo}.
      Since:
      2.3
  • Constructor Details

    • EjbMojo

      @Inject public EjbMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.apache.maven.shared.filtering.MavenFileFilter mavenFileFilter)
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Generates an EJB jar and optionally an ejb-client jar.
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getClassifier

      public String getClassifier()
    • getClientClassifier

      public String getClientClassifier()
    • getProject

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