tags:

views:

84

answers:

1

I am trying to access maven repository from behind proxy. I configured settings.xml correctly (i guess so...)

  <proxies>
    <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <username>username</username>
      <password>password</password>  
      <host>12.34.56.78</host>
      <port>8080</port>
    </proxy>
  </proxies>

But still I am getting an error message like... if i don't configure userid/password gets correct error message which is HTTP response code 407 - saying authentication required. But If I configure correct/incorrect proxy authentication it always prints below error message....

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' from repository central (http://repo1.maven.org/maven2): Error trans
ferring file: Server redirected too many  times (20)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' from repository central (http://repo1.maven.org/maven2): Error trans
ferring file: Server redirected too many  times (20)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
A: 

Is it a NTLM proxy? If yes, try to supply domainname\username for the username (as suggested in this thread).

<username>DOMAINNAME\USERNAME</username>
Pascal Thivent
Yes I tried username with domain name and withouth domain name. but still it fails.
Digambar Daund
@DigambarDaund: can you run maven with -X to see if you get useful information?
Pascal Thivent