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.