title: Override mvn settings.xml in your pom.xml. Define only project specific repos
body: <p>I have the following in .m2, disabling the default remote repo:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  &lt;settings&gt;
  &lt;mirrors&gt;
    &lt;mirror&gt;
      &lt;id&gt;my.mirror&lt;/id&gt;
      &lt;name&gt;My Mirror&lt;/name&gt;
      &lt;url&gt;https://repo.maven.apache.org/alwaysfail&lt;/url&gt;
      &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
    &lt;/mirror&gt;
  &lt;/mirrors&gt;
  </code></pre>
  
  <p></p>
  
  <p>Now I added this in my project pom.xml</p>
  
  <pre><code>&lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;myproject.repo&lt;/id&gt;
          &lt;url&gt;https://repo.maven.apache.org/maven2&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p>But it does not pick up my project specific remote repo and start downloading, what am I doing wrong?</p>