Hi,

I've tried building some mojo plugins that depend on root mojo POM
version 13 and they failed with 2.0.5. In particular the exec plugin
until I partially cleaned my repository.



maven 2.0.4 was ignoring the maven-plugin-plugin because it is
incompatible with 2.0.5:

[INFO] Ignoring available plugin update: 2.2-SNAPSHOT as it requires
Maven version 2.0.5-SNAPSHOT

But with 2.0.5 it tries to use it but did not find it:

[WARNING] Unable to get resource
'org.apache.maven.plugins:maven-plugin-plugin:pom:2.2-SNAPSHOT' from
repository snapshots (http://snapshots.repository.codehaus.org)
[WARNING] Unable to get resource
'org.apache.maven.plugins:maven-plugin-plugin:pom:2.2-SNAPSHOT' from
repository codehaus.org (http://repository.codehaus.org)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found -
check that the goal name is correct: Unable to download the artifact
from any repository

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-plugin-plugin \
       -Dversion=2.2-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file



Cleaning up my repository fixed it.

ls /home/jerome/.m2/repository/org/apache/maven/plugins/maven-plugin-plugin/
2.1/
2.1.1-SNAPSHOT/
2.2-SNAPSHOT/
maven-metadata-apache.snapshots.xml
maven-metadata-central.xml.sha1
maven-metadata-apache.snapshots.xml.sha1
maven-metadata-codehaus.org.xml
rm -r ~/.m2/repository/org/apache/maven/plugins/maven-plugin-plugin/
mvn clean install:
[...]
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-plugin/2.2/maven-plugin-plugin-2.2.pom
5K downloaded
[...]
[INFO] BUILD SUCCESSFUL


Is cleaning up the repository an expected thing to do ?

Cheers,

Jerome

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to