Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

Maven EJB Plug-in

This plug-in provides your basic EJB JAR facilities.

For more information on the functionality provided by this plugin, please see the Goals document.

For more information on how to customise the functionality provided by this plugin, please see the properties document.

Version 1.7.1+ release notes

  • Version 1.7.1 and greater of the EJB plugin require Maven 1.1 beta 2 or above. The reason is that we have introduced a new ejb-client dependency type and that required modifying Maven's core.
  • The EJB client is now generated by the main ejb:ejb goal at the same time it generates the main EJB JAR. The generation is controlled by the maven.ejb.client.generate property (see the properties page for more details) which defaults to false.
  • EJB client JARs are deployed in the Maven repository in the ejbs/ directory alongside the main EJB JARs.
  • In order to reference an EJB client JAR from another project you'll need to specify an ejb-client type. Here's an example:
  • The following goals have been deprecated: ejb:ejb-client, ejb:install-client and ejb:deploy-client. To generate, install and deploy the EJB client JAR use the ejb:ejb, ejb:install and ejb:deploy goals respectively and set the maven.ejb.client.generate to true.