title: how is Maven 3 host look up different to Maven 2?
body: <p>I am working to migrate from Maven 2 to Maven 3.  I have purposely removed the host and port from the messages and settings.</p>
  
  <p>Maven 2 currently works fine with the Artifactory central repository we have setup behind a firewall.  When I switch to using Maven 3 it fails to download the plugins with the error message:</p>
  
  <blockquote>
    <p>[ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.3.1 or
    one of its  dependencies could not be resolved: Failed to read
    artifact descriptor for org.
    apache.maven.plugins:maven-install-plugin:jar:2.3.1: Could not
    transfer artifact 
    org.apache.maven.plugins:maven-install-plugin:pom:2.3.1 from/to
    central (http:/ /:/artifactory/plugins-release): Access
    denied to:
    http://:/artifactory/plugins-release/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
    , ReasonPhrase:Forbidden.</p>
  </blockquote>
  
  <p>Here are my settings:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  
  &lt;proxies&gt;
      &lt;proxy&gt;
        &lt;id&gt;andy&lt;/id&gt;
        &lt;active&gt;true&lt;/active&gt;
        &lt;protocol&gt;http&lt;/protocol&gt;
        &lt;host&gt;proxyip&lt;/host&gt;
        &lt;port&gt;80&lt;/port&gt;
        &lt;username&gt;user&lt;/username&gt;
        &lt;password&gt;password&lt;/password&gt;
        &lt;nonProxyHosts&gt;host&lt;/nonProxyHosts&gt;
      &lt;/proxy&gt; 
    &lt;/proxies&gt;
        &lt;servers&gt;
          &lt;server&gt;
            &lt;username&gt;user&lt;/username&gt;
            &lt;password&gt;password&lt;/password&gt;
            &lt;id&gt;central&lt;/id&gt;
          &lt;/server&gt;
          &lt;server&gt;
        &lt;username&gt;user&lt;/username&gt;
        &lt;password&gt;password&lt;/password&gt;
        &lt;id&gt;snapshots&lt;/id&gt;
      &lt;/server&gt;
    &lt;/servers&gt;
    &lt;profiles&gt;
      &lt;profile&gt;
        &lt;repositories&gt;
          &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;libs-release&lt;/name&gt;
            &lt;url&gt;http://&lt;host&gt;:&lt;port&gt;/artifactory/libs-release&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
            &lt;snapshots /&gt;
            &lt;id&gt;snapshots&lt;/id&gt;
            &lt;name&gt;libs-snapshot&lt;/name&gt;
            &lt;url&gt;http://&lt;host&gt;:&lt;port&gt;/artifactory/libs-snapshot&lt;/url&gt;
          &lt;/repository&gt;
        &lt;/repositories&gt;
        &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
            &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
            &lt;/snapshots&gt;
            &lt;id&gt;central&lt;/id&gt;
            &lt;name&gt;plugins-release&lt;/name&gt;
            &lt;url&gt;http://&lt;host&gt;:&lt;port&gt;/artifactory/plugins-release&lt;/url&gt;
          &lt;/pluginRepository&gt;
          &lt;pluginRepository&gt;
            &lt;snapshots /&gt;
            &lt;id&gt;snapshots&lt;/id&gt;
            &lt;name&gt;plugins-snapshot&lt;/name&gt;
            &lt;url&gt;http://&lt;host&gt;:&lt;port&gt;/artifactory/plugins-snapshot&lt;/url&gt;
          &lt;/pluginRepository&gt;
        &lt;/pluginRepositories&gt;
        &lt;id&gt;artifactory&lt;/id&gt;
      &lt;/profile&gt;
    &lt;/profiles&gt;
    &lt;activeProfiles&gt;
      &lt;activeProfile&gt;artifactory&lt;/activeProfile&gt;
    &lt;/activeProfiles&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p>I have checked that the correct plugin and version exists in artifactory, this does seem to be an access issue.  Has something changed between Maven 2 and Maven 3 where the configuration needs updating?</p>