Maven2: Best practise for Enterprise Project (EAR file)
- by Maik
Hello everyone,
I am just switching from Ant to Maven and am trying to figure out the best practice to set up a EAR file based Enterprise project?
Lets say I want to create a pretty standard project with a jar file for the EJBs, a WAR file for the Web tier and the encapsulating EAR file, with the corresponding deployment descriptors.
How would I go about it? Create the project with archetypeArtifactId=maven-archetype-webapp
liek a war file and extend from there? What is the best project structure (and POM file example) for this? Where do you stick the ear file related deployment descriptors, etc?
Thanks for any help.