【问题标题】:How to solve error related maven plugin loading failure如何解决与错误相关的maven插件加载失败
【发布时间】:2015-07-09 09:00:40
【问题描述】:

我正在学习本教程并尝试创建简单的 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 火星 Jersey 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

【问题讨论】:

  • 为什么不从一开始就使用 Eclipse 创建一个 Maven 项目,然后添加教程中的代码?
  • 我没有时间或想法......我需要让这个只有工作......
  • 你能帮忙解决这个问题吗...??
  • 尝试将堆栈跟踪中的 JAR 添加到 Eclipse 类路径。
  • 我尝试添加所有提到的罐子,但仍然给我同样的错误。

标签: java eclipse rest maven jersey


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-11-02
    • 1970-01-01
    • 1970-01-01
    • 2010-12-21
    • 2014-02-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多