title: Deploying multiple "Web Fragment" projects within an EAR without a WAR
body: <p>I have a handful or EJB jar modules which also include their web resources as described in in <a href="https://stackoverflow.com/questions/8320486/structure-for-multiple-jsf-projects-with-shared-code">this question</a>. </p>
  
  <p>I would now like to deploy this as part of an EAR.</p>
  
  <p>Now, I could do this as a war without any issues and that is my backup plan. However, I would like to understand if it is possible to deploy multiple "web fragment" jars into an ear to form a complete web application <em>without</em> having a war file in there to combine it all together.</p>
  
  <p>Additionally, If I have multiple war files that depend on one or more of these jars, will I have to build them such that these jars are duplicated within the WEB-INF/lib of the war files even if the war files then end up within the same ear?</p>
  
  <p>In this case, if the jar files include entities, would they also be needed in the root of the ear so that a global persistence unit can be defined?</p>
  
  <p>I am on JBoss 7 though I would prefer a standard container independent solution if possible.</p>