title: intellij multi module project adds module as dependency instead of it's jar
body: <p>I have 2 maven projects A and B.<br>
  B has a maven compile time dependency on A's fat jar.</p>
  
  <p>While importing B as a maven project, A gets added as Module dependency instead of target jar.  </p>
  
  <p>Is there a way to disable this?</p>
  
  <p><strong>B's pom.xml (dependency part)</strong></p>
  
  <p><code>&lt;dependency&gt;
    &lt;groupId&gt;com.xxx.yyy&lt;/groupId&gt;
    &lt;artifactId&gt;A&lt;/artifactId&gt;
  &lt;/dependency&gt;</code>    </p>
  
  <p><strong>A's pom.xml (artifact details):</strong>    </p>
  
  <p><code>&lt;groupId&gt;com.xxx.yyy&lt;/groupId&gt;
   &lt;artifactId&gt;A&lt;/artifactId&gt;
   &lt;version&gt;trunk-SNAPSHOT&lt;/version&gt;</code></p>
  
  <p>A is packaged to give Fat jar and B is using version plugin to determine A's version.</p>
  
  <p><strong>Problem:</strong>  </p>
  
  <p>These two are modules in Intellij project. Whichever the way I import them, Project B's dependencies list shows project A as module dependency, instead of the SNAPSHOT(or particular version) of project A's jar.</p>
  
  <p>Because of this, whenever I try to package/install on Project B, I am seeing ClassNotFound for some of the helper classes from A.</p>
  
  <p><strong>Compile log for Project B:</strong></p>
  
  <pre><code>Error:(21, 40) java: cannot find symbol
  symbol:   class ImmutableMap
  location: package org.xxx.yyy.zzz
  
  Error:(22, 40) java: cannot find symbol
  symbol:   class ImmutableSet
  location: package org.xxx.yyy.zzz
  </code></pre>
  
  <p>This same class file can be seen in A's SNAPSHOT jar.</p>