How To Fix Error Could Not Calculate Build Plan When Create Java Maven Project In Eclipse

When I create a java Maven project in eclipse, I meet a could not calculate build plan error. The detailed error message is displayed below. After some investigation, I finally find the method to solve this error.

1. The Could Not Calculate Build Plan Error Detail Message.

  1. Below is the detailed error message for the could not calculate build plan error.
    Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
    Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

2. How To Reproduce The Could Not Calculate Build Plan Error.

  1. Open eclipse, click the menu item File —> New —> Maven Project to open the New Maven Project dialog window.
  2. Do not check the checkbox Create a simple project(skip archetype selection). Click the Next button to continue.
  3. It will take some time to list all the Archetypes in the next Select an Archetype dialog.
  4. Select the archetypes which you need, and click the Finish button.
  5. Then the eclipse will start to download related java jar files into your local repository, this may take some time, you can see there is a progress bar in the bottom right corner of the eclipse editor.
  6. Click the cancel button during this process, and then it will popup the could not calculate build plan error.
  7. If you reopen the eclipse and create another maven project, the error will be thrown again.
  8. Although the error exists, the maven project can be created in eclipse also with a red cross on the eclipse maven project icon.

3. How To Fix The Could Not Calculate Build Plan Error.

  1. Right-click the error maven project in the eclipse editor.
  2. Click the Maven —> Update Project… menu item in the popup menu list, then it will popup the Update Maven Project dialog window.
  3. Check the error maven project in the Available Maven Codebases project list, check the checkboxes Force Update of Snapshots/Releases, Update project configuration from pom.xml, Refresh workspace resources from local filesystem, Clean projects.
    eclipse maven update project dialog
  4. Click the OK button to apply the changes
  5. After some build process, the could not calculate build plan error will be fixed.

4. What Happened Behind The Eclipse Maven Update Project?

  1. If you like this article, please give me some comments, and I will introduce what happened when you update your java maven project, thanks.

Subscribe to receive more programming tricks.

We don’t spam!

Subscribe to receive more programming tricks.

We don’t spam!

4.3 3 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

5 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Abdul
Abdul

It didn’t work for me. Continue getting this same error:
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

Gcp
Gcp

Muy bueno!! solucionado!! gracias!!

Hoang
Hoang

thank you very much. I have already fixed

sameer
sameer

thanks alot ,it worked for me as well

Saranya
Saranya

it was really helpful .. thank you so much now the problem is resolved

5
0
Would love your thoughts, please comment.x
()
x