无法计算构建计划:artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3在本地存储库中不可用 [英] Could not calculate build plan :artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 is not available in the local repository

查看:2293
本文介绍了无法计算构建计划:artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3在本地存储库中不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个春天maven 2项目。
我建立在终端,一切都可以,我建立成功,
,但试图导入到eclipse
我收到这个错误:


无法计算构建计划:存储库系统脱机但工件org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3不可用于本地存储库。


尽管我正在终端和项目中建立成功运行正常。
我在eclipse中离线了maven,启动时禁用了下载索引
任何想法为什么我得到这个错误?

解决方案

如果您的pom对于maven-resources-plugin的版本不具体,则该版本将来自超级项目。默认情况下,m2e使用Maven 3.0.x的嵌入式副本。如果superpom指向2.4.3,并且您的Eclipse外部版本要求其他内容,那么Eclipse中的Maven将会寻找2.4.3,并由于离线而失败。



通过配置m2e来修复您使用外部使用的Maven安装,或关闭离线一个版本。


I have a spring maven 2 project. I built it in terminal and everything is ok, I got build success, but when trying to import it to eclipse I got this error:

Could not calculate build plan: The repository system is offline but the artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 is not available in the local repository.

although I am getting build success in terminal and projects run fine. I made maven offline in eclipse, and disabled download index on startup any ideas why I am getting this error?

解决方案

If your pom is not specific as to the version of the maven-resources-plugin, that version will come from the superpom. By default, m2e uses an embedded copy of Maven 3.0.x. If the superpom there points to 2.4.3 and your 'outside-of-Eclipse' version asks for something else, then the Maven inside of Eclipse will go looking for 2.4.3 and fail due to the 'offline'.

Fix by configuring m2e to use the Maven installation you are using outside, or turning off 'offline' for one build.

这篇关于无法计算构建计划:artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3在本地存储库中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆