title: Maven uses only central repository with Nexus
body: <p>I've set up Nexus to proxy the central Maven repository and added a mirror to <code>settings.xml</code>:
  </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;mirror&gt;
      &lt;id&gt;nexus&lt;/id&gt;
      &lt;mirrorOf&gt;central&lt;/mirrorOf&gt;
      &lt;url&gt;http://my-host:8081/nexus/content/repositories/central/&lt;/url&gt;
  &lt;/mirror&gt;
  </code></pre>
  
  <p>It works fine but if I try to add additional repositories to <code>pom.xml</code> like this:
  </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;repository&gt;
      &lt;id&gt;jboss&lt;/id&gt;
      &lt;url&gt;http://repository.jboss.org/nexus/content/repositories/releases/&lt;/url&gt;
  &lt;/repository&gt;
  </code></pre>
  
  <p>Maven just doesn't see those repositories, until I remove <code>&lt;mirror&gt;</code> from <code>setting.xml</code>. I've also tried to mirror other repositories to Nexus, with no luck: Maven still uses only the central repository.</p>
  
  <p>What am I doing wrong?</p>