繁体   English   中英

将Maven项目加载到Eclipse中时出错

[英]error while loading maven project into eclipse

我正在使用Maven 2.2.0和Eclipse Juno。 我试图将现有的Maven项目之一导入工作区。

我收到以下错误。

  Could not calculate build plan:
 Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: 
Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5



Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: 
Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5

然后,我尝试运行clean install命令。

并且构建成功。

即使在那之后,我也面临着同样的错误。

谁能帮我解决这个问题。

提前致谢。

我刚刚解决了这个问题。

添加了<localRepository>${user.home}/.m2/repository</localRepository>

如我所见,.m2存储库中已经存在2.5个文件夹,因此添加了此文件夹以再次停止从存储库下载。

在eclipse- window--pref--maven--check the path for settings.xml 它应该是有效路径。

它解决了我的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM