简体   繁体   中英

error while loading maven project into eclipse

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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