简体   繁体   English

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

[英]error while loading maven project into eclipse

I am using Maven 2.2.0 and Eclipse Juno. 我正在使用Maven 2.2.0和Eclipse Juno。 I am trying to import one of the existing Maven project into workspace. 我试图将现有的Maven项目之一导入工作区。

I got following error. 我收到以下错误。

  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

Then I tried running clean install command. 然后,我尝试运行clean install命令。

And the build is successful. 并且构建成功。

Even after that, I am facing same error. 即使在那之后,我也面临着同样的错误。

Can any one help me the solution for this. 谁能帮我解决这个问题。

Thanks in Advance. 提前致谢。

I just got solution to this question. 我刚刚解决了这个问题。

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

As I see 2.5 folder already exist in .m2 repository, so added this to stop downloading from repository again. 如我所见,.m2存储库中已经存在2.5个文件夹,因此添加了此文件夹以再次停止从存储库下载。

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

It resolved my problem. 它解决了我的问题。

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

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