error while loading maven project into eclipse

限于喜欢 提交于 2019-12-11 20:46:33

问题


I am using Maven 2.2.0 and Eclipse Juno. I am trying to import one of the existing Maven project into workspace.

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.

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.


回答1:


I just got solution to this question.

Added <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.

In eclipse--window--pref--maven--check the path for settings.xml. Its should be valid path.

It resolved my problem.



来源:https://stackoverflow.com/questions/14065872/error-while-loading-maven-project-into-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!