Build an EJB (and optional client) from the current project.
Mojo Attributes:
package| Name | Type | Description |
|---|---|---|
| ejbVersion | String |
What EJB version should the ejb-plugin generate? ejbVersion can be "2.x" or "3.x"
(where x is a digit), defaulting to "2.1". When ejbVersion is "3.x", the
ejb-jar.xml file is optional.
Usage:
<ejbVersion>3.0</ejbVersion>Default value is 2.1. |
| jarName | String |
The name of the EJB file to generate. |
| outputDirectory | String |
Directory that resources are copied to during the build. |
| Name | Type | Description |
|---|---|---|
| archive | MavenArchiveConfiguration |
The maven archiver to use. |
| classifier | String |
Classifier to add to the artifact generated. If given, the artifact will be an attachment instead. |
| clientExcludes | List |
Excludes.
Usage: <clientIncludes> <clientInclude>**/*Ejb.class</clientInclude> <clientInclude>**/*Bean.class</clientInclude> </clientIncludes> Attribute is used only if client jar is generated. Default exclusions: **/*Bean.class, **/*CMP.class, **/*Session.class, **/package.html |
| clientIncludes | List |
Includes.
Usage: <clientIncludes> <clientInclude>**/*</clientInclude> </clientIncludes> Attribute is used only if client jar is generated. Default value: **/** |
| generateClient | String |
Whether the ejb client jar should be generated or not. Default is false. |
The maven archiver to use.
org.apache.maven.archiver.MavenArchiveConfigurationNojava.lang.StringNo<clientIncludes> <clientInclude>**/*Ejb.class</clientInclude> <clientInclude>**/*Bean.class</clientInclude> </clientIncludes>
java.util.ListNo<clientIncludes> <clientInclude>**/*</clientInclude> </clientIncludes>
java.util.ListNo<ejbVersion>3.0</ejbVersion>
java.lang.StringYes2.1java.lang.StringNojava.lang.StringYes${project.build.finalName}java.lang.StringYes${project.build.outputDirectory}