title: How do you stop maven from trying to access http://repo.maven.apache.org?
body: <p>The development machine cannot access the internet, and take about 60s to timeout. When I try to build, I see </p>
  
  <pre><code>Downloading: http://repo.maven.apache.org/maven2/com/google/gsa-connector/2.8.0/gsa-connector-2.8.0.pom
  </code></pre>
  
  <p>However, I have the following in my POM:</p>
  
  <pre><code>    &lt;repository&gt;
        &lt;id&gt;bb-nexus&lt;/id&gt;
        &lt;url&gt;http://repo.dev.bloomberg.com/content/groups/public&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;repository&gt;
        &lt;id&gt;nexus-3rdparty&lt;/id&gt;
        &lt;url&gt;http://repo.dev.bloomberg.com/content/repositories/thirdparty/&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;
  </code></pre>
  
  <p>It always tries to go to repo.maven first. I even tried to add to D:\.m2\settings.xml</p>
  
  <pre><code>&lt;settings&gt;
    &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;!--This sends everything else to /public --&gt;
        &lt;id&gt;nexus&lt;/id&gt;
        &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
        &lt;url&gt;http://repo.dev.bloomberg.com/content/groups/public&lt;/url&gt;
      &lt;/mirror&gt;
    &lt;/mirrors&gt;
  </code></pre>
  
  <p>based on <a href="http://maven.apache.org/guides/mini/guide-mirror-settings.html" rel="noreferrer">http://maven.apache.org/guides/mini/guide-mirror-settings.html</a> yet it continues to try repo.maven first. I'm using Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)</p>
  
  <p>I can't use -o because it still needs to access the local repo.dev.</p>
  
  <hr>
  
  <p>Here is with 'effective-settings':</p>
  
  <pre><code>D:\Users\chloe\Projects\team\confluence-plugin&gt;mvn help:effective-settings
  [INFO] Scanning for projects...
  Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
  [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-install-plugin/maven-metadata.xml from/to central (
  http://repo.maven.apache.org/maven2): Connection to http://repo.maven.apache.org refused
  ...
  [INFO]
  [INFO] --- maven-help-plugin:2.1.1:effective-settings (default-cli) @ bb-confluence-plugin ---
  [INFO]
  Effective user-specific configuration settings:
  
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  ...
  &lt;settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoca
  tion="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"&gt;
    &lt;localRepository xmlns="http://maven.apache.org/SETTINGS/1.1.0"&gt;d:\.m2\repository&lt;/localRepository&gt;
    &lt;pluginGroups xmlns="http://maven.apache.org/SETTINGS/1.1.0"&gt;
      &lt;pluginGroup&gt;org.apache.maven.plugins&lt;/pluginGroup&gt;
      &lt;pluginGroup&gt;org.codehaus.mojo&lt;/pluginGroup&gt;
    &lt;/pluginGroups&gt;
  &lt;/settings&gt;
  
  [INFO] ------------------------------------------------------------------------
  </code></pre>