title: How can I setup Apache Archiva as cache fo all my maven projects?
body: <p>I have setup Apache Archiva with internal repo at </p>
  
  <p><a href="http://localhost:8080/archiva/repository/internal/" rel="nofollow noreferrer">http://localhost:8080/archiva/repository/internal/</a></p>
  
  <p>But when I trying to run "mvn compile",requests for artifacts are forwarded to Apache Archiva but I see following error:</p>
  
  <p>Non-resolvable parent POM: Could not find artifact org.springframework.cloud:spring-cloud-build:pom:1.2.0.BUILD-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]</p>
  
  <p>Do I need to update any specific settings so Archiva can fetch required artifact from remote repository?</p>
  
  <p>Content from ~/.m2/settings.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0  https://maven.apache.org/xsd/settings-1.0.0.xsd"&gt;
    &lt;localRepository&gt;${user.home}/.m2/repository&lt;/localRepository&gt;
    &lt;interactiveMode/&gt;
    &lt;usePluginRegistry/&gt;
    &lt;offline/&gt;
    &lt;pluginGroups/&gt;
    &lt;servers/&gt;
    &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;id&gt;internal&lt;/id&gt;
        &lt;name&gt;Internal repo + cache &lt;/name&gt;
        &lt;url&gt;http://localhost:8080/archiva/repository/internal/&lt;/url&gt;
        &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
      &lt;/mirror&gt;
    &lt;/mirrors&gt;
    &lt;proxies/&gt;
    &lt;profiles&gt;
        &lt;profile&gt;
          &lt;activation&gt;
              &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;/activation&gt;
          &lt;repositories&gt;
              &lt;repository&gt;
                &lt;id&gt;internal&lt;/id&gt;
                &lt;name&gt;Archiva Managed Internal Repository&lt;/name&gt;
                &lt;url&gt;http://localhost:8080/archiva/repository/internal/&lt;/url&gt;
                &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                &lt;/releases&gt;
                &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
                &lt;/snapshots&gt;
              &lt;/repository&gt;
              &lt;repository&gt;
                &lt;id&gt;snapshots&lt;/id&gt;
                &lt;name&gt;Archiva Managed Internal Repository&lt;/name&gt;
                &lt;url&gt;http://localhost:8080/archiva/repository/snapshots/&lt;/url&gt;
                &lt;releases&gt;
                  &lt;enabled&gt;false&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;/profile&gt;
    &lt;/profiles&gt;
    &lt;activeProfiles/&gt;
  &lt;/settings&gt;
  </code></pre>