java Fail DL jars Maven
两周后,我搜索了不同的解决方案:我没有找到答案:这里是一堆错误:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TestProject 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-samples/3.0.7.RE
LEASE/spring-security-samples-3.0.7.RELEASE.pom
fÚvr. 24, 2016 5:22:53 PM org.apache.maven.wagon.providers.http.httpclient.impl.auth.HttpAuthenticator generate
AuthResponse
AVERTISSEMENT: NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credent
ials provided (Mechanism level: Failed to find any Kerberos tgt))
fÚvr. 24, 2016 5:22:53 PM org.apache.maven.wagon.providers.http.httpclient.impl.auth.HttpAuthenticator generate
AuthResponse
AVERTISSEMENT: KERBEROS authentication error: No valid credentials provided (Mechanism level: Failed to find an
y Kerberos tgt)
fÚvr. 24, 2016 5:22:53 PM org.apache.maven.wagon.providers.http.httpclient.impl.auth.HttpAuthenticator generate
AuthResponse
AVERTISSEMENT: NTLM authentication error: Credentials cannot be used for NTLM authentication: org.apache.maven.
wagon.providers.http.httpclient.auth.UsernamePasswordCredentials
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.996 s
[INFO] Finished at: 2016-02-24T17:22:53+01:00
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project TestProject: Could not resolve dependencies for project TestProject:T
estProject:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.springframework.security:spring-security-s
amples:jar:3.0.7.RELEASE: Failed to read artifact descriptor for org.springframework.security:spring-security-s
amples:jar:3.0.7.RELEASE: Could not transfer artifact org.springframework.security:spring-security-samples:pom:
3.0.7.RELEASE from/to central (https://repo.maven.apache.org/maven2): Not authorized by proxy , ReasonPhrase:Pr
oxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Pr
oxy filter is denied. ). -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
我使用的是EclipseMars,Maven 3.3.3,我用代理配置了settings.xml
我还尝试使用ISA防火墙,但没有成功。杀毒Symantec端点是否可能拒绝DL
Thnx
编辑 设置。xml:
<proxies>
<proxy>
<id>proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>172.22.200.22</host>
<port>8080</port>
<username>INTRA\USerName</username>
<password>password</password>
</proxy>
</proxies>
配置Eclipse图片:
欢迎提出任何建议
# 1 楼答案
为了减少可能出现的问题,不要使用嵌入式maven安装eclipse
从官方网站下载maven二进制文件,并为NTLM代理配置maven安装。你需要CNTLM来解决这些NTLM问题。使用this教程这是一个非常详细的教程。使用命令提示符成功安装maven之后,只需通过更改首选项将该安装添加到eclipse
提示:很多时候eclipse甚至没有打开maketplace,即使我们在preferences中输入了所有代理详细信息。只需将系统代理指向CNTLM代理端口,就可以访问marketplace