title: Maven repository issue
body: <p>Maven tries to download packages/dependencies from localhost on port 8081. This nexus url takeover is unwanted and has not happend to me before.</p>
  
  <p>After running the usual <code>mvn clean install</code> this happens:</p>
  
  <pre><code>Downloading:
  http://192.168.10.46:8081/nexus/content/groups/public/org/codehaus/plexus/plexus-io/1.0/plexus-io-1.0.jar
  Downloading: 
  http://192.168.10.46:8081/nexus/content/groups/public/org/codehaus/plexus/plexus- archiver/1.0/plexus-archiver-1.0.jar
  Downloading: http://192.168.10.46:8081/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar
  [ERROR] The build could not read 1 project -&gt; [Help 1]
  [ERROR]   
  [ERROR]   The project com.enonic.kurs:my-plugin:1.0.0-SNAPSHOT (/Users/xx yy/Documents/Enonic plugins/project/project/pom.xml) has 2 errors
  [ERROR]     Unresolveable build extension: Plugin com.enonic.cms.tools:maven-cms-plugin:1.0.0 or one of its dependencies could not be resolved
  </code></pre>
  
  <p>All the times before dependencies have been downloaded from specified repositories. Repository in my pom.xml:</p>
  
  <pre><code>&lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
          &lt;id&gt;enonic&lt;/id&gt;
          &lt;name&gt;Enonic Plugin Repository&lt;/name&gt;
          &lt;url&gt;http://repo.enonic.com/maven&lt;/url&gt;
      &lt;/pluginRepository&gt;
  &lt;/pluginRepositories&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.enonic.cms&lt;/groupId&gt;
          &lt;artifactId&gt;cms-api&lt;/artifactId&gt;
          &lt;version&gt;4.4.10&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
     .........
     ---------
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;com.enonic.cms.tools&lt;/groupId&gt;
              &lt;artifactId&gt;maven-cms-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p><b>EDIT: I think I've found the problem</b>, but no solution to it yet.
  Inside the build plugin <code>com.enonic.cms.tools:maven-cms-plugin</code> there are dependencies to <code>plexus-utils</code>, <code>plexus-io</code> and <code>plexus-archiver</code> and it looks like there are connection problems to these, which forces local repository lookup.</p>
  
  <p>Debug info:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [DEBUG] com.enonic.cms.tools:maven-cms-plugin:jar:1.0.0:
  [DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.9:compile
  [DEBUG]    org.apache.maven:maven-model:jar:2.0.9:compile
  [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.5.1:compile
  [DEBUG]    org.apache.maven:maven-artifact:jar:2.0.9:compile
  [DEBUG]    org.apache.maven:maven-project:jar:2.0.9:compile 
  [DEBUG]       org.apache.maven:maven-settings:jar:2.0.9:compile
  [DEBUG]       org.apache.maven:maven-profile:jar:2.0.9:compile
  [DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.9:compile
  [DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.9:compile
  [DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0.9:compile
  [DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
  [DEBUG]          junit:junit:jar:3.8.1:compile
  [DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile
  [DEBUG]    org.apache.maven:maven-archiver:jar:2.4.1:compile
  [DEBUG]       org.codehaus.plexus:plexus-archiver:jar:1.0:compile
  [DEBUG]          org.codehaus.plexus:plexus-io:jar:1.0:compile
  [DEBUG]       org.codehaus.plexus:plexus-interpolation:jar:1.13:compile
  [DEBUG]    org.apache.maven.shared:maven-osgi:jar:0.2.0:compile
  [DEBUG]       biz.aQute:bndlib:jar:0.0.203:compile
  [DEBUG] Verifying availability of /Users/geir nygard/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar from [nexus (http://192.168.10.46:8081/nexus/content/groups/public, releases+snapshots)]
  [DEBUG] Verifying availability of /Users/geir nygard/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0/plexus-archiver-1.0.jar from [nexus (http://192.168.10.46:8081/nexus/content/groups/public, releases+snapshots)]
  [DEBUG] Verifying availability of /Users/geir nygard/.m2/repository/org/codehaus/plexus/plexus-io/1.0/plexus-io-1.0.jar from [nexus (http://192.168.10.46:8081/nexus/content/groups/public, releases+snapshots)]
  </code></pre>
  
  <p><b>Settings.xml:</b></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://192.168.10.46:8081/nexus/content/groups/public&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;/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;/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;
    &lt;/activeProfiles&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p>After editing <code>settings.xml</code> changing <code>mirrorOf</code> contents to  <code>*,!enonic</code> I get this error:</p>
  
  <pre><code>ERROR] Error resolving version for plugin 'org.apache.maven.plugins:maven-install-plugin' from the repositories [local (/Users/xx yy/.m2/repository), enonic (http://repo.enonic.com/maven), nexus (http://192.168.10.46:8081/nexus/content/groups/public)]: Plugin not found in any plugin repository -&gt; [Help 1]
  </code></pre>