2012-05-24 25 views
2

我收到此錯誤,同時試圖做一個乾淨的安裝使用Maven:Maven的不大廈項目(連接問題)

[INFO] Scanning for projects... 
Downloading: http://xxx/repository/com/fusionone/device/d 
evice-parent/3.5.0-BA-CLIENT-SNAPSHOT/maven-metadata.xml 
Downloading: http://xxx/repository/com/fusionone/device/device-pare 
nt/3.5.0-BA-CLIENT-SNAPSHOT/maven-metadata.xml 
Downloading: http://xxx/repository/com/fusionone/devic 
e/device-parent/3.5.0-BA-CLIENT-SNAPSHOT/maven-metadata.xml 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: I/O exception (java.net.SocketException) caught when connecting to the tar 
get host: Permission denied: connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: I/O exception (java.net.SocketException) caught when connecting to the tar 
get host: Permission denied: connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: I/O exception (java.net.SocketException) caught when connecting to the tar 
get host: Permission denied: connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: Retrying connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: Retrying connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: Retrying connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: I/O exception (java.net.SocketException) caught when connecting to the tar 
get host: Permission denied: connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: I/O exception (java.net.SocketException) caught when connecting to the tar 
get host: Permission denied: connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: I/O exception (java.net.SocketException) caught when connecting to the tar 
get host: Permission denied: connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: Retrying connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: Retrying connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: I/O exception (java.net.SocketException) caught when connecting to the tar 
get host: Permission denied: connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: Retrying connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: Retrying connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: I/O exception (java.net.SocketException) caught when connecting to the tar 
get host: Permission denied: connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: I/O exception (java.net.SocketException) caught when connecting to the tar 
get host: Permission denied: connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: Retrying connect 
May 24, 2012 5:55:56 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl 
ient.DefaultRequestDirector tryConnect 
INFO: Retrying connect 
[WARNING] Could not transfer metadata com.xxx.device:device-parent:3.5.0-B 
A-CLIENT-SNAPSHOT/maven-metadata.xml from/to maestro-project-server (http://xxx): Permission denied: connect 
[WARNING] Could not transfer metadata com.xxx.device:device-parent:3.5.0-B 
A-CLIENT-SNAPSHOT/maven-metadata.xml from/to xxx-xxx-repo (http://xxx): Permission denied: connect 
[WARNING] Could not transfer metadata com.xxx.device:device-parent:3.5.0-B 
A-CLIENT-SNAPSHOT/maven-metadata.xml from/to re-repo (http://xx.xx.x.xxx:xxx/re 
pository): Permission denied: connect 
+1

在堆棧跟蹤的最後,它說「權限被拒絕」。看起來你的存儲庫之一是拒絕你訪問。嘗試從POM中刪除堆棧跟蹤中顯示的回購並嘗試再次構建....即使它不會構建,如果遇到不同的錯誤,您也會知道哪些回購(或多個)會導致問題。 – Renato

回答

1

這是很明顯的:「權限被拒絕」。而已。您正在使用的存儲庫(其中一個)需要您在訪問之前進行身份驗證和授權。如果您確實無法訪問或輸入您的登錄名/密碼,則應停止使用此存儲庫。到你的settings.xml文件,如this,以便Maven可以向你介紹服務器:)。

1

解決這個當Maven獲取的依賴和父項目,它拋出一個Permission denied: connect錯誤。
我發現問題可能與JDK 1.7和Windows 7中的known bug有關。問題可能與應用程序不完全支持IPv6或者不支持IPv6的網絡/防火牆有關。解決方法是在Java或Maven命令行參數中設置-Djava.net.preferIPv4Stack=true