我克隆从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