title: Maven, package does not exist
body: <p>I have a module whose pom file is: </p>
  
  <pre><code>&lt;groupId&gt;com.mycompany.Common&lt;/groupId&gt;
  &lt;artifactId&gt;common&lt;/artifactId&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;common module&lt;/name&gt;
  </code></pre>
  
  <p>In that artifact ('common'), I have a package named com.mycompany.common.objects. In the consuming package, my pom file is: </p>
  
  <pre><code> &lt;dependency&gt;
              &lt;groupId&gt;com.mycompany.Common&lt;/groupId&gt;
              &lt;artifactId&gt;common&lt;/artifactId&gt;
              &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
   &lt;/dependency&gt;
  </code></pre>
  
  <p>When I run mvn install it always complain: package com.mycompany.common.objects does not exist. </p>
  
  <p>I tried explicit importing in the class where the error was: </p>
  
  <pre><code>import com.mycompany.common.objects
  </code></pre>
  
  <p>No luck. I tried in both the IDE (IntelliJ) and in commandline. Any idea? thanks</p>