Maven2: Best practise for Enterprise Project (EAR file)

Posted by Maik on Stack Overflow See other posts from Stack Overflow or by Maik
Published on 2009-07-16T00:47:27Z Indexed on 2010/04/21 8:43 UTC
Read the original article Hit count: 336

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about java-ee