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

Posted on Saturday, June 26, 2010

8


Recently I encountered this weird problem when i was trying to build a project after installing the m2eclipse plugin on my eclipse galileo. Build id: 20100218-1602

The problem was that when i built the project from command line, it was just working fine, however, as soon as I built the project from eclipse, eclipse started complaining with

1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.1 -Dpackaging=maven-plugin -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.1 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
———-
1 required artifact is missing.
for artifact:
org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

The way it is solved for now is that I added the following dependency to my pom.xml and it seems to work

<plugins>
<plugin>
<groupid>org.apache.maven.plugins</groupid>
<artifactid>maven-resources-plugin</artifactid>
<version>2.4.2</version>
</plugin>
</plugins>
Advertisements
Posted in: Java, Maven, Tip