title: URL of server changed from http to www
body: <p>Actually, I'm trying to connect to an external repository to get some libraries . I have defined in my settings.xml the server with the user/password ...</p>
  
  <pre><code>&lt;server&gt;
      &lt;id&gt;nexus&lt;/id&gt;
      &lt;username&gt;[user]&lt;/username&gt;
  &lt;password&gt;[password]&lt;/password&gt;
  &lt;/server&gt;
  </code></pre>
  
  <p>I have defined a mirror ...</p>
  
  <pre><code>&lt;mirror&gt;
      &lt;id&gt;nexus&lt;/id&gt;
      &lt;name&gt;Maven Repository Manager running on itd-dev&lt;/name&gt;
      &lt;url&gt;http://ci-prod-nexus:8081/nexus/content/groups/public/&lt;/url&gt;
      &lt;mirrorOf&gt;external:*&lt;/mirrorOf&gt;
  &lt;/mirror&gt;
  </code></pre>
  
  <p>I have a profile ...</p>
  
  <pre><code>&lt;profile&gt;
      &lt;id&gt;itd-dev-repository&lt;/id&gt;
     &lt;repositories&gt;
        &lt;repository&gt;
           &lt;id&gt;new itd-dev repository releases&lt;/id&gt;
       &lt;name&gt;new itd-dev repository releases&lt;/name&gt;
       &lt;url&gt;http://ci-prod-nexus:8081/nexus/content/groups/public/&lt;/url&gt;
        &lt;/repository&gt;
      &lt;/repositories&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>And I have said that everyone passes through that profile</p>
  
  <pre><code>&lt;activeProfiles&gt;
      &lt;activeProfile&gt;itd-dev-repository&lt;/activeProfile&gt;
  &lt;/activeProfiles&gt;
  </code></pre>
  
  <p>When I enter via chrome or firefox to the url, and check the user/password, I can enter in the repository, but when I try to make a mvn clean package, I obtained the following exception ...</p>
  
  <pre><code>Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.ci-prod-nexus.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-booter/2.11/surefire-booter-2.11.pom
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1838)
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
  at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
  at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
  </code></pre>
  
  <p>The thing is that is normal, because , if you take a look to the url in the exception, he is adding www to the mirror url, and not using the exact url of the mirror I'm asking to use.</p>
  
  <p>Why maven is doing such a thing ? I don't understand . Maybe should I specify some extra thing ? . I have tested with maven 2 and maven 3 and I have obtained the same results. </p>