解决:Plugin org.apache.maven.plugins:maven-resources-plugin:2.6错误

2018-11-15 19:36:07
3654次阅读
0个评论

Maven时出现以下错误

Errors occurred during the build.

Errors running builder 'Maven Project Builder' on project 'aaa'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6



找到maven的包的位置:window->preferences->Maven->User Settings找到。 
一般是在:{user.home}.m2\repository

2、查看是哪个包的问题,例如:我的问题是org.apache.maven.plugins:maven-resources-plugin包下的2.6出了问题。 
则找到:C:\Users\Admin.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.6 删除这个包。

3、回到Eclipse右键项目选择Maven->Update Project…



收藏00

登录 后评论。没有帐号? 注册 一个。