title: include jar of one module to another
body: <p>I have maven projet with this architecture:</p>
  
  <pre><code>++parent-project
      +module-a
      +module-b
  </code></pre>
  
  <p>module-b is a web application. it will be run on Jboss AS 7.1.1. I'm using netbeans IDE.</p>
  
  <p>Now <code>module-b</code> depend on <code>module-a</code>. this is a porm section of <code>module-b</code>:</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;groupid&lt;/groupId&gt;
          &lt;artifactId&gt;module-a&lt;/artifactId&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>When i build the war file of <code>module-b</code>, <code>module-a</code> is not present to lib folder ( in war file. i open it with archive explorer ). therefore JBoss return <code>ClassNotFoundException</code>.</p>
  
  <p>I'm tried differends scope ( compile , provided , runtime , test ). But nothing.</p>
  
  <p>Please how can i solve this.</p>