title: Why does Maven want to download a module from a remote repository
body: <p>Given the following modules in my pom.xml</p>
  
  <pre><code>&lt;modules&gt;
    &lt;module&gt;core&lt;/module&gt;
    &lt;module&gt;middle-layer&lt;/module&gt;
    &lt;module&gt;top-layer&lt;/module&gt;
  &lt;modules&gt;
  </code></pre>
  
  <p>Where top-layer depends on middle-layer which depends on core.</p>
  
  <p>When I run <code>clean install</code> it will build and install core and middle-layer successfully, but not top-layer. It tries to download middle-layer from a remote repository instead of using the freshly built one in the local repository.</p>
  
  <p>I do have a custom remote repository specified in my pom.xml:</p>
  
  <pre><code> &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;custom&lt;/id&gt;
          &lt;url&gt;http://someaddress/maven2/&lt;/url&gt;
          &lt;snapshots&gt;
              &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
          &lt;/snapshots&gt;
          &lt;releases&gt;
              &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
          &lt;/releases&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p>Why does it want to grab middle-layer from the remote repository?</p>
  
  <p>Currently, everything is in SNAPSHOT-mode.</p>
  
  <p>Middle layer dependency:</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mygroup&lt;/groupId&gt;
          &lt;artifactId&gt;core&lt;/artifactId&gt;
          &lt;version&gt;2.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Top layer dependency:</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mygroup&lt;/groupId&gt;
          &lt;artifactId&gt;middle-layer&lt;/artifactId&gt;
          &lt;version&gt;2.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>They all inherent their versions from the parent (currently at 2.0.1-SNAPSHOT) and I'm calling install from the parent pom.</p>