Reputation: 71
I am facing an issue while creating EAR file using Maven of a Dynamic Web Project.
I have successfully created WAR file using POM.xml
, but can anybody tell me how to write EAR script in POM.xml
?
Thanks in advance
Upvotes: 0
Views: 8530
Reputation: 483
Check my archetype for maven, this is for Java EE 6
https://github.com/sjpuas/jee6-archetype
Upvotes: 0
Reputation: 24176
It easy. You need:
You can use archetype:generate to create example of ear. For example archetype with id: 612.
612: remote -> org.jboss.spec.archetypes:jboss-javaee6-ear-webapp (An archetype that generates a starter Java EE 6 webapp project for JBoss AS 7. The project is an EAR, with an EJB-JAR and WAR)
If you don't need ejb - just delete it. In generated example ejb is optional.
Upvotes: 1