title: unable to download maven repositories due to custom settings.xml?
body: <p>Here is my situation:</p>
  
  <p>I am able to run <code>mvn install</code> on my personal computer and the build successful.</p>
  
  <p>But when I run the same at workstation, I get the following error. This is most likely because I have a <code>settings.xml</code> in <code>${user.home}/.m2/settings.xml</code> which refers to my company's repo and DOES NOT allow to fetch from remote maven repo. How can I overcome this behavior? </p>
  
  <p>Both my workstation and personal computer runs mac OS X.</p>
  
  <p>Here is the <code>settings.xml</code>(I have replaced real names with dummy ones)</p>
  
  <pre><code>&lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;dummy&lt;/id&gt;
              &lt;activation&gt;
                  &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
              &lt;/activation&gt;
              &lt;properties&gt;
                  &lt;dummy-groupId&gt;com.mycompany.mydummy&lt;/dummy-groupId&gt;
                  &lt;dummy-name&gt;my-java-ee-app&lt;/dummy-name&gt;
                  &lt;dummy-Mode&gt;FALSE&lt;/dummy-Mode&gt;
              &lt;/properties&gt;
              &lt;repositories&gt;
                  &lt;repository&gt;
                      &lt;id&gt;mycompany Release Repository&lt;/id&gt;
                      &lt;name&gt;central maven release repository&lt;/name&gt;
                      &lt;url&gt;
                          http://maven1.mycompany.com:8080/myartifactories/repo
                      &lt;/url&gt;
                      &lt;snapshots&gt;
                          &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;/snapshots&gt;
                  &lt;/repository&gt;
                  &lt;repository&gt;
                      &lt;id&gt;mycompany Snapshot Repository&lt;/id&gt;
                      &lt;name&gt;central maven snapshot repository&lt;/name&gt;
                      &lt;url&gt;
                          http://maven1.mycompany.com:8080/myartifactories/repo
                      &lt;/url&gt;
                      &lt;releases&gt;
                          &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;/releases&gt;
                  &lt;/repository&gt;
              &lt;/repositories&gt;
              &lt;pluginRepositories&gt;
                  &lt;pluginRepository&gt;
                      &lt;id&gt;mycompany Release Plugin Repository&lt;/id&gt;
                      &lt;name&gt;central maven release repository&lt;/name&gt;
                      &lt;url&gt;
                          http://maven1.mycompany.com:8080/myartifactories/repo
                      &lt;/url&gt;
                      &lt;releases&gt;
                          &lt;enabled&gt;true&lt;/enabled&gt;
                          &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
                      &lt;/releases&gt;
                  &lt;/pluginRepository&gt;
                  &lt;pluginRepository&gt;
                      &lt;id&gt;mycompany Snapshot Plugin Repository&lt;/id&gt;
                      &lt;name&gt;maven snapshot repository&lt;/name&gt;
                      &lt;url&gt;
                          http://maven1.mycompany.com:8080/myartifactories/repo
                      &lt;/url&gt;
                      &lt;snapshots&gt;
                          &lt;enabled&gt;true&lt;/enabled&gt;
                          &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
                      &lt;/snapshots&gt;
                  &lt;/pluginRepository&gt;
              &lt;/pluginRepositories&gt;
          &lt;/profile&gt;
  </code></pre>
  
  <p><strong>Error</strong>:</p>
  
  <p><code>Could not resolve dependencies for project org.glassfish.javaeetutorial:roster-ejb:ejb:7.0.5: Failure to find org.glassfish.javaeetutorial:roster-common:jar:7.0.5 in http://maven1.mycompany.com:8080/myartifactories/repo was cached in the local repository, resolution will not be reattempted until the update interval of mycompany Release Repository has elapsed or updates are forced -&gt; [Help 1]</code></p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>I DO see the central repo in my effective pom:
  Here is the condensed version of it</p>
  
  <pre><code>&lt;repository&gt;
        &lt;snapshots&gt;
          &lt;enabled&gt;false&lt;/enabled&gt;
        &lt;/snapshots&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;name&gt;Central Repository&lt;/name&gt;
        &lt;url&gt;http://repo.maven.apache.org/maven2&lt;/url&gt;
      &lt;/repository&gt;
  </code></pre>