您的位置:首页 > 其它

使用Maven时pom.xml最上面尖角号出现红色 错误解决

2017-03-16 11:10 531 查看
Maven 错误解决

错误信息:

Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.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-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven.org/maven2): No response received after 60000 ExampleProject Unknown Maven Problem

解决方案:

找到{user} /.m2 / repository文件夹(在这里使用Win7)

如我的电脑是:C:\Users\Administrator\.m2\repository

在窗口右上方的搜索字段中,键入“.lastupdated”。
Windows将查看目录中这些文件的所有子文件夹。

通过右键单击>删除(我保留了所有的lastupdated.properties)删除它们。

然后回到Eclipse,右键单击项目并选择Maven>更新项目。 我选择了“强制更新快照/版本”。
单击确定,依赖项最终正确解析。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐