title: Why does maven 3.2 download same artifact multiple times from all repositories defined in pom
body: <p>I have defined 2 repositories in pom.xml like below. One is public and other is thirdparty.</p>
  
  <pre><code>&lt;repositories&gt;
     &lt;repository&gt;
          &lt;id&gt;public&lt;/id&gt;
          &lt;name&gt;Nexus - Public Repositories&lt;/name&gt;
          &lt;layout&gt;default&lt;/layout&gt;
          &lt;url&gt;http://mavenrepo.aaa.net/nexus/content/groups/public&lt;/url&gt;
          &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
          &lt;/releases&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/snapshots&gt;
      &lt;/repository&gt;       
      &lt;repository&gt;
          &lt;id&gt;thirdparty&lt;/id&gt;
          &lt;name&gt;Nexus - Third Party&lt;/name&gt;
          &lt;layout&gt;default&lt;/layout&gt;
          &lt;url&gt;http://mavenrepo.aaa.net/nexus/content/repositories/thirdparty&lt;/url&gt;
          &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
          &lt;/releases&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/snapshots&gt;
      &lt;/repository&gt;       
  &lt;/repositories&gt;
  </code></pre>
  
  <p>Say there is a dependency called grpId:artId:1.1.0 which I have defined in my pom. This dependency is present in both the repositories defined above- public and thirdparty </p>
  
  <p>When I run mvn install I see different behaviours in the way maven downloads the grpId:artId:1.1.0 artifact based on the version of maven i am using.</p>
  
  <p>Behaviours :-</p>
  
  <p><strong>1. Using Maven 3.1 and previous versions</strong> </p>
  
  <ul>
  <li><strong>a.</strong> Maven looks up the dependency grpId:artId:1.1.0 in 'public' repo</li>
  <li><strong>b.</strong> Maven finds the dependency and downloads it.</li>
  <li><strong>c.</strong> Maven does not look up the dependency grpId:artId:1.1.0 in<br>
  'thirdparty' repo as it is already downloaded from previous repository.</li>
  </ul>
  
  <p><strong>2. Using Maven 3.2</strong> </p>
  
  <ul>
  <li><strong>a.</strong> Maven looks up the dependency grpId:artId:1.1.0 in 'public' repo</li>
  <li><strong>b.</strong> Maven finds the dependency in 'public' repo and downloads it.</li>
  <li><strong>c.</strong> Maven again looks up the dependency grpId:artId:1.1.0 in
  'thirdparty' repo even  though it is already downloaded from 'public' repository.</li>
  <li><strong>d.</strong> Maven finds the dependency in 'thirdparty' repo and downloads it
  and overwrites the dependency downloaded from 'public' repo previously</li>
  </ul>
  
  <p>I wonder why maven is behaving in an absurd manner for maven-3.2. It should stop looking further for the dependency which is already resolved and downloaded from one repository .</p>
  
  <p>Is there a way to achieve it using maven 3.2 ?</p>