我克隆從GIT中轂行家項目。但在pom文件中顯示error.git hub項目沒有任何錯誤。因爲它在另一臺機器上完美運行。而且我不支持任何代理服務器。我嘗試了stackoverflow中的大部分解決方案。但我無法克服這個問題。的Maven pom.xml文件顯示錯誤
錯誤
Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.10 from http://
repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted
until the update interval of central has elapsed or updates are forced. Original error: Could not transfer
artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.10 from/to central (http://
repo.maven.apache.org/maven2): null to http://repo.maven.apache.org/maven2/org/apache/maven/
plugins/maven-surefire-plugin/2.10/maven-surefire-plugin-2.10.pom
什麼我迄今做了什麼?
- 右擊工程中的 - >的Maven - >更新項目。這是行不通的
- 運行作爲Maven的安裝
- 刪除項目,然後又一個新的副本。同樣的問題有
- 設置maven到外側的maven文件夾
- 刪除所有的maven設置。重新安裝。
- 重新安裝了Eclipse的新副本,並通過工作區
沒有什麼工作對我來說改變。 PLZ幫我.....
粘貼pom.xml – user2511882 2015-01-04 11:51:35
在命令行中試試這個:'mvn -U install'(/bin必須在你的$ PATH中,並且你必須在你的項目的根目錄下運行它)。 -U選項表示:強制依賴關係更新(即不應該使用本地存儲庫緩存) –
ben75
2015-01-04 11:53:54
我使用eclipse構建我的項目並使用eclipse maven插件 – Burusothman 2015-01-04 12:00:16