title: Configuring eclipse, maven and archiva
body: <p>I'm trying to configure Apache Archiva, Maven and Spring Tool Suite.
  I have installed Apache Archiva in a Debian Server. At this moment it's running and I can access it using the webapp.</p>
  
  <p>I have installed Maven3, and Spring Tool Suite but I can't compile the project. It's my first time setting up a repository and configuring maven for that.</p>
  
  <p>Basically I want a way to make versions and "store" my snapshots and releases.</p>
  
  <p>On my settings.xml I have the following:</p>
  
  <pre><code>&lt;settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                        http://maven.apache.org/xsd/settings-1.0.0.xsd"&gt;
  
    &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;id&gt;archiva.central&lt;/id&gt;
        &lt;url&gt;http://MY_IP_ADDRESS:MY_PORT/archiva/repository/internal&lt;/url&gt;
        &lt;mirrorOf&gt;central&lt;/mirrorOf&gt;
      &lt;/mirror&gt;
    &lt;/mirrors&gt;
  
  
  &lt;/settings&gt;
  </code></pre>
  
  <p>Than I created a Maven Project with the following .pom file:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;pt.XX.YYY&lt;/groupId&gt;
      &lt;artifactId&gt;my-project-name&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;scm&gt;
          &lt;connection&gt;scm:git:ssh://XXXX@bitbucket.org/XXXX/my-project-name.git&lt;/connection&gt;
          &lt;developerConnection&gt;scm:git:ssh://XXXX@bitbucket.org/XXXX/my-project-name.git&lt;/developerConnection&gt;
          &lt;url&gt;https://bitbucket.org/XXXX/my-project-name&lt;/url&gt;
      &lt;/scm&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;ISO-8859-1&lt;/project.build.sourceEncoding&gt;
          &lt;javaVersion&gt;1.8&lt;/javaVersion&gt;
      &lt;/properties&gt;
  
      &lt;distributionManagement&gt;
          &lt;snapshotRepository&gt;
              &lt;id&gt;snapshots&lt;/id&gt;
              &lt;name&gt;Snapshots Repo&lt;/name&gt;
              &lt;url&gt;http://MY_IP_ADDRESS:MY_PORT/archiva/repository/snapshots&lt;/url&gt;
          &lt;/snapshotRepository&gt;
          &lt;repository&gt;
              &lt;id&gt;internal&lt;/id&gt;
              &lt;name&gt;Releases&lt;/name&gt;
              &lt;url&gt;http://MY_IP_ADDRESS:MY_PORT/archiva/repository/internal&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/distributionManagement&gt;
  
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;${javaVersion}&lt;/source&gt;
                          &lt;target&gt;${javaVersion}&lt;/target&gt;
                          &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
                      &lt;/configuration&gt;
                      &lt;inherited&gt;true&lt;/inherited&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
                      &lt;configuration&gt;
                          &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
                      &lt;/configuration&gt;
                      &lt;inherited&gt;true&lt;/inherited&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
                      &lt;configuration&gt;
                          &lt;goals&gt;deploy&lt;/goals&gt;
                      &lt;/configuration&gt;
                      &lt;inherited&gt;true&lt;/inherited&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
  
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Unfortunately STS says the following:</p>
  
  <p>"Error resolving version for plugin 'org.apache.maven.plugins:maven-compiler-plugin' from the repositories [local (C:\Users\XXXX.m2\repository), archiva.central (<a href="http://MY_IP_ADDRESS:MY_PORT/archiva/repository/internal)]" rel="nofollow">http://MY_IP_ADDRESS:MY_PORT/archiva/repository/internal)]</a>: Plugin not found in any plugin repository"</p>