title: Maven looking for dependency in wrong repo
body: <p>I have a snapshot maven repo defined:</p>
  
  <pre><code>&lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;tmp-repo&lt;/id&gt;
          &lt;url&gt;https://my-snapshot-repo&lt;/url&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
          &lt;/snapshots&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p>The problem is, for some reason, maven is looking for the following two dependencies:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
          &lt;artifactId&gt;httpcomponents-core&lt;/artifactId&gt;
          &lt;version&gt;4.4&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
          &lt;artifactId&gt;httpcomponents-client&lt;/artifactId&gt;
          &lt;version&gt;4.4&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>In the snapshot repo rather than the stable maven repo. Each compile gives this error:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal on project myProject: Could not resolve
    dependencies for project com.myGroupId:myArtifact:jar:1.0-SNAPSHOT:
    The following artifacts could not be resolved:
    org.apache.httpcomponents:httpcomponents-core:jar:4.4,
    org.apache.httpcomponents:httpcomponents-client:jar:4.4: Could not
    find artifact org.apache.httpcomponents:httpcomponents-core:jar:4.4 in
    tmp-repo (<a href="https://my-snapshot-repo" rel="nofollow">https://my-snapshot-repo</a>)</p>
  </blockquote>
  
  <p>How do I force maven to not look for this dependency in the snapshot repo?</p>