eclipse maven pom.xml错误

来源:互联网 发布:js代码整理工具 编辑:程序博客网 时间:2024/05/21 20:52

错误提示为:

  Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 fromhttp://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


解决方案:

 1  去本地目录下找到文件夹: {user}/.m2/repository (比如我的是:C:\Users\Andy\.m2\repository)

 2  在windows的右上角有个搜索框,输入搜索关键词: .lastupdated.properties

 3  找到所有的文件删掉

 4 回到eclipse 右键项目--Maven > Update Project 选择 Force Update of Snapshots/Releases 即可。


0 0
原创粉丝点击