title: Can't use classes from different Maven modules
body: <p>Need to create a multi module maven project which consist of a registration module and main project. The problem is that it's impossible to use classes declared in different modules.</p>
  
  <p>e.g.: I have a <code>ParentClaz</code> in my parent's src/main/java dir and <code>ChildClaz</code> in child's src/main/java dir. Right now it's not possible to use neither <code>ParentClaz</code> in <code>ChildClaz</code> nor vice versa.</p>
  
  <p>The project's structure looks like this:</p>
  
  <pre><code>+-- AdminPortal     &lt;- parent root
     +-- registration &lt;- child root
         -- pom.xml   &lt;- child pom
     -- pom.xml       &lt;- parent pom
  </code></pre>
  
  <p>my AdminPortal POM:</p>
  
  <pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.example&lt;/groupId&gt;
  &lt;artifactId&gt;AdminPortal&lt;/artifactId&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;AdminPortal&lt;/name&gt;
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
  &lt;modules&gt;
      &lt;module&gt;registration&lt;/module&gt;
  &lt;/modules&gt;
  </code></pre>
  
  <p>Here's child POM:</p>
  
  <pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;com.example&lt;/groupId&gt;
      &lt;artifactId&gt;AdminPortal&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;groupId&gt;com.example.AdminPortal&lt;/groupId&gt;
  &lt;artifactId&gt;registration&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;name&gt;registration&lt;/name&gt;
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  </code></pre>
  
  <p>How can this problem be solved?</p>