title: How to package EJB3 with external domain-jar
body: <p>I am facing another problem in my little test-webapp.
  I have an EJB module (created via maven-pom) that basically wraps the data-access, so all it does is some DAOs implemented as Stateless-SessionBeans. My domain-model (simple POJOs with JPA2 annotations) is located in another, simple java, project that will be packaged as jar-file.</p>
  
  <p>When I create the enterprise-archive, maven only puts the webapp and the ejb-module into the application.xml and even when I change this manually the <strong>ejb-module cannot find the classes from the domain-module at deployment time</strong>. </p>
  
  <p>I read something about that an ejb has to have all its dependent jars within its own archive but I cant believe that since this domain-module is used by other projects as well. </p>
  
  <p><strong>How would I package this (or set it up in maven) so my ejb can load classes from an external jar?</strong></p>
  
  <p>thanks</p>