可以从代理后面访问Maven存储库,需要帮助 [英] Can access maven repository from behind proxy, need help
问题描述
我正在尝试从代理后面访问Maven存储库. 我正确配置了settings.xml(我想是这样)
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>
但是我仍然收到类似...的错误消息,如果我不配置userid/password,则会得到正确的错误消息,该错误消息是HTTP响应代码407
-说需要身份验证.
但是,如果我配置正确/不正确的代理身份验证,它将始终在错误消息下方显示....
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
推荐答案
它是NTLM代理吗?如果是,请尝试为username
提供domainname\username
(如
Is it a NTLM proxy? If yes, try to supply domainname\username
for the username
(as suggested in this thread).
<username>DOMAINNAME\USERNAME</username>
这篇关于可以从代理后面访问Maven存储库,需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!