title: maven: Error transferring file: Connection refused: connect
body: <p>I am working in a network environment. 
  my network ip address for internet is: </p>
  
  <p>IE->tools->internet options->connections->LAN settings->Use Automatic configuration script(enabled): Address: <strong>http://autocache.abc.com/</strong> </p>
  
  <p>port address is not specified in IE settings.</p>
  
  <p>when i do ping autocache.abc.com it gives following ip address: 16.234.18.243</p>
  
  <p>in settings.xml file i have enabled entry for proxy as:</p>
  
  <pre><code>&lt;proxy&gt;
           &lt;id&gt;genproxy&lt;/id&gt;
           &lt;active&gt;true&lt;/active&gt;
           &lt;protocol&gt;http&lt;/protocol&gt;
           &lt;host&gt;autocache.abc.com&lt;/host&gt;
  &lt;/proxy&gt;
  </code></pre>
  
  <p>Nothing is specified at Ie host ie: IE->tools->connection->LAN settings->advanced->http shows empty</p>
  
  <p>if i run <strong>mvn install</strong> getting following error:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO] ------------------------------------------------------------------------
  [INFO] Building home-app
  [INFO]    task-segment: [install]
  [INFO] ------------------------------------------------------------------------
  [INFO] [resources:resources {execution: default-resources}]
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 4 resources
  Downloading: https://repository.jboss.org/nexus/content/repositories/releases//org/springframework/spring-parent/3.0.6.RELEASE/spring-parent-3.0.6.RELEASE.pom
  [WARNING] Unable to get resource 'org.springframework:spring-parent:pom:3.0.6.RELEASE' from repository jboss (https://repository.jboss.org/nexus/content/repositories/releases/): Error transferring file: Connection refused: connect
  Downloading: http://repository.springsource.com/maven/bundles/release/org/springframework/spring-parent/3.0.6.RELEASE/spring-parent-3.0.6.RELEASE.pom
  [WARNING] Unable to get resource 'org.springframework:spring-parent:pom:3.0.6.RELEASE' from repository com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/release): Error transferring file: Connection refused: connect
  Downloading: http://repository.springsource.com/maven/bundles/external/org/springframework/spring-parent/3.0.6.RELEASE/spring-parent-3.0.6.RELEASE.pom
  [WARNING] Unable to get resource 'org.springframework:spring-parent:pom:3.0.6.RELEASE' from repository com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/external): Error transferring file: Connection refused: connect
  Downloading: http://repo1.maven.org/maven2/org/springframework/spring-parent/3.0.6.RELEASE/spring-parent-3.0.6.RELEASE.pom
  [WARNING] Unable to get resource 'org.springframework:spring-parent:pom:3.0.6.RELEASE' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection refused: connect
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Error building POM (may not be this project's POM).
  
  
  Project ID: org.springframework:spring-orm:jar:3.0.6.RELEASE
  
  Reason: Cannot find parent: org.springframework:spring-parent for project: org.springframework:spring-orm:jar:3.0.6.RELEASE for project org.springframework:spring-orm:jar:3.0.6.RELEASE
  
  
  [INFO] ------------------------------------------------------------------------
  [INFO] For more information, run Maven with the -e switch
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 11 seconds
  [INFO] Finished at: Wed Feb 15 11:40:32 IST 2012
  [INFO] Final Memory: 11M/27M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>If I run mvn install without network connection ie at my private internet connection, it is working fine and only problem is with network proxy.</p>
  
  <p>I strongly feel it is host issue, if I give host as  16.234.18.243 instead of autocache.abc.com, still gives same error.</p>
  
  <p>I tried to create new local repository( ie deleted existing directory), but still same issue.</p>