当前位置:   article > 正文

Maven项目报错:Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies

plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dep

 

Eclipse创建maven简单项目时,报错:

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

 

 

解决方法:

修改settings.xml,添加:

  1. <mirror>
  2. <id>Central</id>
  3. <url>http://repo1.maven.org/maven2</url>
  4. <mirrorOf>central</mirrorOf>
  5. </mirror>


右键项目Update等待即可

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号