无法计算构建计划:找不到工件 org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3
我在 Eclipse 中使用 m2eclipse 插件(版本 0.12.0.20101115-1102)构建错误:
无法计算构建计划:找不到工件 org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3
我双倍检查并且 maven-resources-plugin 在我的本地存储库以及 Maven Repo 中可用。
有人知道这里出了什么问题吗?
I'vea build error in Eclipse with m2eclipse plugin (version 0.12.0.20101115-1102):
Could not calculate build plan: Could not find artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3
I double checked and maven-resources-plugin is available in my local repository, as well as in Maven Repo.
Does anybody know what's wrong here ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
似乎随着 m2eclipse 插件的新版本(0.12.1)而消失
Seems to be gone with new Version (0.12.1) of m2eclipse plugin
我必须从本地存储库中删除该文件夹,然后重新启动 eclipse。只需删除该文件夹即可将错误更改为 401 拒绝,然后重新启动即可完全删除下一个错误。
院长
I had to delete the folder from the local repository AND THEN restart eclipse. Just deleting the folder changed the error to a 401 denied for me and then a restart removed that next error completely.
Dean
刚刚接触Maven,我也遇到过这个问题。通用解决方案,如发布在 无法计算构建计划:插件 org.apache.maven.plugins:maven-resources-plugin:2.5 或其依赖项之一无法解决 不过,对于仍然遇到此问题的开发人员来说,需要一个附加组件,因为它没有为我解决问题。我已经挣扎了一个多小时,并执行了以下操作来解决该问题:
mvn --version
来仔细检查。*允许清理完成
注意:我运行的是 Windows 8.1,使用 JDK 1.7、Maven 3.2.5 和 Eclipse Juno。
New to Maven, I also experienced this problem. The generic solution, as posted on Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved requires an add-on though, for developers who are still experiencing this problem, as it did not solve the problem for me. I've been struggling for more than an hour already and did the following to resolve the issue:
mvn --version
via command prompt.*Allow the clean to complete
Note: I'm running Windows 8.1, using JDK 1.7, Maven 3.2.5 and Eclipse Juno.
我正是遇到这个问题。今天我首先安装了 Maven 并使用了它。检查我是否可以在命令提示符下使用它。然后我尝试从日食。下载m2e,并创建一个新的maven项目。被 Eclipse 告知“无法计算构建计划:找不到工件 org.apache.maven.plugins:... bla bla bla”。
解决方案:转到.m2并删除存储库文件夹。刷新 eclipse (或重新启动它)。现在可以了!
I had exactly this problem. Today I first setup maven and played around with it. Checked that I could use it with command prompt. Then I tried from eclipse. Downloaded m2e, and created a new maven project. Was told by eclipse "Could not calculate build plan: Could not find artifact org.apache.maven.plugins:... bla bla bla".
Solution: go to .m2 and delete the repository folder. Refresh eclipse (or restart it). Now it works!
我找到了解决这个问题的方法,我尝试了很多方法,终于成功解决了这个问题。请按照以下步骤操作。
外部 Maven 包的“settings.xml”文件。
不行,重启eclipse,清理并更新Maven项目。
I've found a way to solve this issue, I tried many things and finally managed to resolve this issue. please follow the below steps.
for the 'settings.xml' file of your external Maven package.
not, restart the eclipse, clean and update the Maven project.
您的项目 pom.xml 中是否定义了 maven-resources-plugin?
甚至尝试从本地存储库中删除该文件夹并让它再次下载 jar。
Do you have the maven-resources-plugin defined in your project pom.xml?
Even try deleting the folder from your local repository and let it download the jar again.