| Property | Optional? | Description | Default |
|---|---|---|---|
| maven.ejb.index | Yes | Whether to create an index list to speed up classloading. This is a JDK 1.3+ specific feature. Defaults to false. | |
| maven.ejb.src | Yes |
Root of files to be included within the ejb-jar.
The same directory structure will be followed within the assembled jar file.
Please note this is not for your java code or class files, these are other resources.
Alternatively, you can use the
resources element
of the project.xml to specify resource across various
directories, just as you would for a jar or war project.
|
src/ejb |
| maven.ejb.includes | Yes |
Files to include in ejb
Note: Files are relative to
${maven.build.dest}.
|
** |
| maven.ejb.excludes | Yes |
Files to exclude in ejb
Note: Files are relative to
${maven.build.dest}.
|
**/package.html |
| maven.ejb.client.index | Yes | Whether to create an index list to speed up classloading. This is a JDK 1.3+ specific feature. Defaults to false. | |
| maven.ejb.client.base.excludes | Yes | Classes excluded by default from a client ejb jar | **/*Bean.class,**/*CMP.class,**/*Session.class |
| maven.ejb.client.excludes | Yes | Classes excluded from a client ejb jar | None |
| maven.ejb.manifest | Yes | Location of the manifest file to be used within the ejb jar file. | ${maven.ejb.src}/META-INF/MANIFEST.MF |
| Property | Description | See |
|---|---|---|
| maven.build.dir | where the component will be assembled | maven.build.dir |
| maven.final.name | The assembled component will be ${maven.build.dir}/${maven.final.name}.jar |
maven.final.name |
You must tell Maven what jars you want included in the ejb. This is probably only needed if you are building a standalone ejb jar. This is achieved by specifying meta-information in the POM, using the following syntax:
To access the classes within other jars (either within the same ear file or embedded within the same ejbjar), you will need to use the manifest Class-Path entry. To generate the classpath for an ejb-jar from the dependencies use this syntax.