2016-02-24 37 views
0

2周後尋找不同的解決方案:我未能找到答案:錯誤,這裏的堆棧:失敗DL罐子的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 

我使用Eclipse火星,Maven的3.3.3和我配置了settings.xml與代理。

我也嘗試使用ISA防火牆沒有成功。防病毒Symantec EndPoint可否拒絕DL?

日Thnx

編輯 的settings.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的圖片:

Window -> Referencs -> General -> Network Connection

Logs Errors

任何建議是歡迎

+0

你通過代理訪問互聯網,你需要提供認證? –

+0

該公司使用在計算機中配置的代理。而在'settings.xml'中,我使用會話名稱和密碼配置了身份驗證 – Hohenheim

+0

@JPMoresmau我使用我的'settings.xml'編輯了 – Hohenheim

回答

0

爲了減少可能的問題,不要使用eclipse的嵌入式maven安裝。

從官方網站下載maven二進制文件,併爲NTLM代理配置maven安裝。您需要CNTLM來解決這些NTLM問題。使用this教程它非常詳細。使用命令提示符完成maven安裝後,只需通過更改首選項將該安裝添加到eclipse中。

提示:多次日食甚至不開maketplace即使我們進入了preferences.Just所有代理細節點系統代理CNTLM代理端口,你將能夠訪問市場。

+1

嗨,這不是解決辦法,問題是TMG的Forefront這擋住了接取,你提到的鏈接:我嘗試過了,它並沒有解決問題 – Hohenheim