title: How to use Maven to make a Java EE 6 project
body: <p>I have used Eclipse to make a <code>EJB project</code>, <code>Dynamic Web project</code> and then I have combined these to in a <code>EAR project</code>. Now I am learning Maven and I wonder how you manage how you do this?</p>
  
  <p>If I use an archetype that generates a javaee6-webapp then after what I understand you get a WAR archive....but that can only use the subset of the JavaEE6 specifiaction. I want to use the whole. So do I need to use one archetype for javaee6-ejb and one for javaee6-webapp, and then combine these in some way?</p>
  
  <p>If this is the case or there are other better approaces I would be happy to learn about it.</p>
  
  <p>Or are the EJBs in a webapp project generated by an archetype compiled and packed as a library and added to the WEB-INF/lib folder? If so, does it have access to the full JavaEE6 API if deployed in a full profile app server? </p>