Could not calculate build plan: Could not find artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3
I'vea build error in Eclipse with m2eclipse plugin (version 0.12.0.20101115-1102):
Could not calculate build plan: Could not find artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3
I double checked and maven-resources-plugin is available in my local repository, as well as in Maven Repo.
Does anyb开发者_StackOverflow中文版ody know what's wrong here ?
Do you have the maven-resources-plugin defined in your project pom.xml?
<plugin>
<groupid>org.apache.maven.plugins</groupid>
<artifactid>maven-resources-plugin</artifactid>
<version>2.4.3</version>
</plugin>
Even try deleting the folder from your local repository and let it download the jar again.
Seems to be gone with new Version (0.12.1) of m2eclipse plugin
I had to delete the folder from the local repository AND THEN restart eclipse. Just deleting the folder changed the error to a 401 denied for me and then a restart removed that next error completely.
Dean
New to Maven, I also experienced this problem. The generic solution, as posted on Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved requires an add-on though, for developers who are still experiencing this problem, as it did not solve the problem for me. I've been struggling for more than an hour already and did the following to resolve the issue:
- Ensure that Maven has been installed correctly. You can double check by running
mvn --version
via command prompt. - Close Eclipse
- Delete all files in the repository folder (Users\$User$\.m2\repository)
- Open Eclipse
- Project > Clean > Clean All Projects > OK *Allow the clean to complete
- Right click on project > Maven > Update Project
- In the pop-up, ensure that "Update project configuration from pom.xml" and "Clean Projects" is ticked.
- Click on Ok and allow Maven to reconfigure and download your project's plugins etc.
Note: I'm running Windows 8.1, using JDK 1.7, Maven 3.2.5 and Eclipse Juno.
I had exactly this problem. Today I first setup maven and played around with it. Checked that I could use it with command prompt. Then I tried from eclipse. Downloaded m2e, and created a new maven project. Was told by eclipse "Could not calculate build plan: Could not find artifact org.apache.maven.plugins:... bla bla bla".
Solution: go to .m2 and delete the repository folder. Refresh eclipse (or restart it). Now it works!
I've found a way to solve this issue, I tried many things and finally managed to resolve this issue. please follow the below steps.
- In eclipse go to 'windows' --> 'preferences'
- select 'Maven' and then select 'UserSettings'
- You'll see two files, one 'Global-settings' another 'User-settings'
- If you are using an external Maven installation, then set the path for the 'settings.xml' file of your external Maven package.
- If you are using eclipse embedded Maven, then it is set by default.
- in both the cases you need to edit the proxy setting in the 'settings.xml' file, add your Host and port number in the file.
- Now apply the settings and you can see the issue now resolved. If not, restart the eclipse, clean and update the Maven project.
精彩评论