title: Maven2: Best practice for Enterprise Project (EAR file)
body: <p>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?</p>
  
  <p>Let's 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.</p>
  
  <p>How would I go about it? Create the project with <code>archetypeArtifactId=maven-archetype-webapp</code> as with 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? </p>
  
  <p>Thanks for any help. </p>