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:
The minimum ...