title: Why can't maven find an artifact located in a hosted repository?
body: <p>We've a nexus-server which has the common maven-public repository-group containing every external proxy-repository (e.g. maven-central). Besides that we have a local hosted repository. Let's call it MyProjectRepository. It's splitted in a release-repo and a snapshot-repo. </p>
  
  <p>So, currently it looks like this: </p>
  
  <ul>
  <li>MyProjectRepository</li>
  <li>MyProjectRepository-Snapshots
  
  <ul>
  <li>ArtifactOne
  
  <ul>
  <li>Snapshot-5</li>
  <li>...</li>
  <li>Snapshot-1</li>
  </ul></li>
  <li>ArtifactTwo
  
  <ul>
  <li>Snapshot-3</li>
  <li>...</li>
  <li>Snapshot-1</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>Okay, ArtifactTwo needs ArtifactOne as a dependency. So, I've added this in the dependencies section:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.company&lt;/groupId&gt;
          &lt;artifactId&gt;artifactone&lt;/artifactId&gt;
          &lt;version&gt;0.0.5&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I've configured the repository section like this: </p>
  
  <pre><code>    &lt;repository&gt;
        &lt;id&gt;myprojectrepositoryss&lt;/id&gt;
        &lt;name&gt;MyProjectRepository Snapshots&lt;/name&gt;
        &lt;url&gt;http://mylocalnexus.com/nexus/repository/MyProjectRepository-Snapshots/&lt;/url&gt;
          &lt;releases&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/releases&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
          &lt;/snapshots&gt;
      &lt;/repository&gt;
  </code></pre>
  
  <p>My settings.xml mirrors-section looks like this: </p>
  
  <pre><code>    &lt;mirror&gt;
         &lt;!--This sends everything else to /public --&gt;
         &lt;id&gt;nexus&lt;/id&gt;
         &lt;mirrorOf&gt;external:*, !myprojectrepositoryss&lt;/mirrorOf&gt;
         &lt;url&gt;http://mylocalnexus.com/nexus/repository/maven-public/&lt;/url&gt;
       &lt;/mirror&gt;
  </code></pre>
  
  <p>My settings.xml profiles-section look like this:</p>
  
  <pre><code>&lt;profile&gt;
    &lt;id&gt;nexus&lt;/id&gt;
    &lt;!--Enable snapshots for the built in central repo to direct --&gt;
    &lt;!--all requests to nexus via the mirror --&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;url&gt;http://central&lt;/url&gt;
        &lt;releases&gt;&lt;enabled&gt;true&lt;/enabled&gt;&lt;/releases&gt;
        &lt;snapshots&gt;&lt;enabled&gt;true&lt;/enabled&gt;&lt;/snapshots&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
   &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;url&gt;http://central&lt;/url&gt;
        &lt;releases&gt;&lt;enabled&gt;true&lt;/enabled&gt;&lt;/releases&gt;
        &lt;snapshots&gt;&lt;enabled&gt;true&lt;/enabled&gt;&lt;/snapshots&gt;
      &lt;/pluginRepository&gt;
    &lt;/pluginRepositories&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>Despite having setup everything like described in the tutorial, my IDE states that the artifact in the given dependency cannot be found. </p>
  
  <blockquote>
    <p>Failed to execute goal on project ArtifactTwo: Could not resolve
    dependencies for project com.company:ArtifactTwo:jar:0.0.3-SNAPSHOT:
    Failure to find
    com.company:artifactone:jar:0.0.5 in
    <a href="http://mylocalnexus.com/nexus/repository/maven-public/" rel="nofollow">http://mylocalnexus.com/nexus/repository/maven-public/</a> was cached in
    the local repository, resolution will not be reattempted until the
    update interval of nexus has elapsed or updates are forced</p>
  </blockquote>
  
  <p>Why does it search for the dependency in "maven-public"? 
  Does anybody have a clue how to get this to work? </p>