如何解决与错误相关的maven插件加载失败

时间:2015-07-09 09:00:41

标签: java eclipse rest maven jersey

我正在关注本教程并尝试创建简单的REST API示例

http://crunchify.com/how-to-build-restful-service-with-java-using-jax-rs-and-jersey/

每次我将项目转换为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

如何解决..我已经安装了maven并设置了环境变量。

“我有非常陡峭的时间表”..任何帮助将不胜感激。 使用Eclipse Mars 泽西岛1.9捆的罐子

修改 确切的错误

构建期间发生错误。     在项目'CrunchifyRESTJerseyExample1'上运行构建器'Maven Project Builder'时出错。

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

1 个答案:

答案 0 :(得分:0)

尝试删除.m2存储库文件夹下的所有文件,然后重新构建项目。 12533885