title: Configure local nexus server to download artifacts from other remote nexus repository
body: <p>I have installed Nexus repository locally and configuried maven to use my Nexus repo. I am trying to install broadleaf commerce but always getting the error. Broadleaf demo: <a href="https://github.com/BroadleafCommerce/DemoSite" rel="nofollow noreferrer">https://github.com/BroadleafCommerce/DemoSite</a>. </p>
  
  <p>When I build the project with default maven settings file I can able to build the project. But with nexus local repo, I couldn't able to download the broadleaf artifacts. Can anyone help me what's wrong with my settings?</p>
  
  <p><strong>My settings.xml</strong></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://localhost:8081/repository/maven-proxy-test/&lt;/url&gt;
  &lt;/mirror&gt;
  &lt;/mirrors&gt;
  &lt;profiles&gt;
  &lt;profile&gt;
    &lt;id&gt;nexus&lt;/id&gt;
    &lt;!--Enable snapshots for the built in central repo to direct --&gt;
    &lt;!--all requests to nexus via the mirror --&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;url&gt;http://central&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;broadleaf-repo&lt;/id&gt;
        &lt;url&gt;http://nexus.broadleafcommerce.org/nexus/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;/repositories&gt;
   &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;url&gt;http://central&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;/pluginRepository&gt;
  &lt;pluginRepository&gt;
        &lt;id&gt;broadleaf-repo&lt;/id&gt;
        &lt;url&gt;http://nexus.broadleafcommerce.org/nexus/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;/pluginRepository&gt;
    &lt;/pluginRepositories&gt;
  &lt;/profile&gt;
   &lt;/profiles&gt;
  &lt;activeProfiles&gt;
  &lt;!--make the profile active all the time --&gt;
  &lt;activeProfile&gt;nexus&lt;/activeProfile&gt;
  </code></pre>
  
  <p>
     </p>
  
  <p>When I build the broadleaf project I am always getting the build error.</p>
  
  <pre><code>INFO] Reactor Summary:
  [INFO] 
  [INFO] Broadleaf Spring Boot Community Demo 1.0.0-SNAPSHOT  SUCCESS [  0.612 s]
  [INFO] Community Demo Core ................................ FAILURE [  0.652 s]
  [INFO] Community Demo Site ................................ SKIPPED
  [INFO] Community Demo Admin ............................... SKIPPED
  [INFO] Community Demo API 1.0.0-SNAPSHOT .................. SKIPPED
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.885 s
  [INFO] Finished at: 2018-11-18T18:48:31+11:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal on project boot-community-demo-core: Could not resolve dependencies for project com.mycompany-community:boot-community-demo-core:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at org.broadleafcommerce:broadleaf-framework:jar:5.2.7-SNAPSHOT -&gt; org.broadleafcommerce:broadleaf-common:jar:5.2.7-SNAPSHOT -&gt; org.broadleafcommerce:broadleaf-common-presentation:jar:1.0.4-SNAPSHOT: Failed to read artifact descriptor for org.broadleafcommerce:broadleaf-common-presentation:jar:1.0.4-SNAPSHOT: Failure to find org.broadleafcommerce:broadleaf-module-parent:pom:1.0.13-GA in http://localhost:8081/repository/maven-proxy-test/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project boot-community-demo-core: Could not resolve dependencies for project com.mycompany-community:boot-community-demo-core:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at org.broadleafcommerce:broadleaf-framework:jar:5.2.7-SNAPSHOT -&gt; org.broadleafcommerce:broadleaf-common:jar:5.2.7-SNAPSHOT -&gt; org.broadleafcommerce:broadleaf-common-presentation:jar:1.0.4-SNAPSHOT
  </code></pre>