title: Disable maven settings mirror via local pom
body: <p>In my maven settings.xml is following snippet: </p>
  
  <pre><code>&lt;mirrors&gt;
      &lt;mirror&gt;
          &lt;!--This sends everything to our company mirror --&gt;
          &lt;id&gt;nexus&lt;/id&gt;
          &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
          &lt;url&gt;[company-mirror]&lt;/url&gt;
      &lt;/mirror&gt;
  &lt;/mirrors&gt;
  </code></pre>
  
  <p>This sends everything to our company mirror and if it can't resolve it, it we will get it from the maven repository.</p>
  
  <p>Now we also receive bug fixes from a vendor from one of our technologies via their maven nexus. Problem is our company mirror doesn't automatically query this nexus, I can easily provide following mirror edit in the settings.xml:</p>
  
  <pre><code>&lt;mirrors&gt;
    &lt;mirror&gt;
      &lt;id&gt;[vendor-id]&lt;/id&gt;
      &lt;mirrorOf&gt;[vendor-mirror]&lt;/mirrorOf&gt;
      &lt;url&gt;[vendor-url]&lt;/url&gt;
   &lt;/mirror&gt;
   &lt;mirror&gt;[company-mirror-settings]&lt;/mirror&gt;
  &lt;/mirrors&gt;
  </code></pre>
  
  <p>And then it will query fine but we can not do this for our company maintained build server which just queries the company mirror.</p>
  
  <p>Is there a way to do it in our local pom.xml/project without touching any external settings?</p>
  
  <p>I have tried following in our pom.xml but it didn't work:</p>
  
  <pre><code>&lt;project&gt;
  ...
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/snapshots&gt;
          &lt;id&gt;[vendor-id]&lt;/id&gt;
          &lt;name&gt;[vendor-name]&lt;/name&gt;
          &lt;url&gt;[vendor-url]&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  ...
  &lt;/project&gt;
  </code></pre>
  
  <p>running mvn clean install gets following error:</p>
  
  <pre><code>[ERROR] Failed to execute goal on project &lt;project-name&gt;: Could not resolve dependencies for project &lt;project-name&gt;:jar:1.2.0-SNAPSHOT: Coul
  d not find artifact &lt;vendor-dependency&gt; in &lt;company-mirror&gt;
  </code></pre>