O'Reilly logo

Apache Maven 3 Cookbook by Srirangan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enterprise Java development with Maven

The Maven EAR plugin primarily is used to generate the J2EE Enterprise Archive file. The EAR file (or Enterprise Archive) is a Java EE file format used for packaging one or more modules for deployment onto application servers. It also contains deployment descriptors which are XML files (like application.xml) that describe deployment information for the package.

According to the Maven EAR plugin FAQ:

"An EAR archive is used to deploy standalone EJBs, usually separated from the web application. Thus there is no need for a web application to access these EJBs. The EJBs are still accessible, though, using EJB clients."

The EAR plugin supports the following artifacts:

  • ejb
  • war
  • jar
  • ejb-client
  • rar
  • ejb3
  • par
  • sar
  • wsr
  • har

The minimum ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required