title: Maven, build a submodule separately
body: <p>I have a multimodule project. Root module has <code>&lt;packaging&gt;pom&lt;/packaging&gt;</code></p>
  
  <p>When I try to build whole project - it works fine. When I try to build a module that has no dependencies to other modules from my project - works fine. When I try to build a module that dependent on other project submodules - it fails with message</p>
  
  <pre><code>Failed to execute goal on project controller:
  Could not resolve dependencies for project org.template:controller:ejb:1.0-SNAPSHOT:
  Failed to collect dependencies for [***full list of dependencies***]:
  Failed to read artifact descriptor for org.template:model:jar:1.0-SNAPSHOT:
  Could not find artifact org.template:root-module:pom:1.0-SNAPSHOT
  </code></pre>
  
  <p>Seems that it misses pom for root module</p>
  
  <p>Here is part of the submodule pom, that linking to the root module</p>
  
  <pre><code>&lt;artifactId&gt;controller&lt;/artifactId&gt;
  &lt;packaging&gt;ejb&lt;/packaging&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;org.template&lt;/groupId&gt;
      &lt;artifactId&gt;app-settings&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;relativePath&gt;../root-module&lt;/relativePath&gt;
  &lt;/parent&gt;
  </code></pre>
  
  <p>What I do wrong?</p>