Wednesday, September 1, 2010

Could not calculate build plan: Missing: maven-resources-plugin:maven-plugin:2.4.1

While I was trying to take Quartz using Maven I got "Could not calculate build plan: Missing: maven-resources-plugin:maven-plugin:2.4.1" error. What now? Everything was working just fine!
To fix this, find where your local repo is, then go to "/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/", remove "2.4.1" directory and do "update dependencies" from Maven.

4 comments:

  1. I'm sorry, but you tip doesn't work.

    ReplyDelete
  2. Did not worked for me either in eclipse Helios, so i simply set the version to the one used by the command line mvn:

    org.apache.maven.plugins
    maven-resources-plugin 2.3

    ReplyDelete
  3. mmmh apparently xml tags are eaten by this blog, so here's a decriptive attempt:
    in the plugins tag of our pom add a plugin node with child groupId and value org.apache.maven.plugins, another child artifactId with value maven-resources-plugin and and last child version with value 2.3. Sorry i did not know the escape to quote xml.

    Example with a similar structure but for the
    surefire plugin here: http://maven.apache.org/plugins/maven-surefire-plugin/examples/skipping-test.html

    ReplyDelete
  4. solved by solving the problems in the "problem window"

    ReplyDelete