By the way, also check if you have your remote repo declared in the
<pluginRepositories> section since your issue is plugin-related.
John Tolentino wrote:
Hi Arnaud,
You said you're using an internal repository. Have you added in your
pom.xml or settings.xml that repository? The remote repo URLs you gave
is only http://repo1.maven.org/maven2.
Try:
mvn help:effective-settings
to show all the repositories maven are using in your environment.
Regards,
John
Arnaud Bailly wrote:
Hi,
I still have problems getting a custom built cobertura plugin being
downloaded from an internal repository : while everything is setup
(properly I think), the build fail with following message :
[ERROR] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found -
check that t he goal name is correct: Unable to download the artifact
from any repository
org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
The repository contains the following tree :
org/codehaus/mojo/maven-metadata-central.xml.sha1
org/codehaus/mojo/maven-metadata-central.xml
org/codehaus/mojo/mojo-sandbox
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/mojo-sandbox-2-SNAPSHOT.pom
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/maven-metadata-myserver.xml
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/maven-metadata-Maven
Snapshots.xml.sha1
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/maven-metadata-Maven
Snapshots.xml
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/mojo-sandbox-2-20060116.044847-1.pom.sha1
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/mojo-sandbox-2-20060116.044847-1.pom
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/mojo-sandbox-2-20060213.034901-2.pom.sha1
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/mojo-sandbox-2-20060213.034901-2.pom
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/maven-metadata-snapshots.xml.sha1
org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/maven-metadata-snapshots.xml
org/codehaus/mojo/cobertura-maven-plugin
org/codehaus/mojo/cobertura-maven-plugin/2.0-SNAPSHOT
org/codehaus/mojo/cobertura-maven-plugin/2.0-SNAPSHOT/cobertura-maven-plugin-2.0-SNAPSHOT.jar
org/codehaus/mojo/cobertura-maven-plugin/2.0-SNAPSHOT/maven-metadata-local.xml
org/codehaus/mojo/cobertura-maven-plugin/2.0-SNAPSHOT/cobertura-maven-plugin-2.0-SNAPSHOT.pom
org/codehaus/mojo/cobertura-maven-plugin/2.0-SNAPSHOT/maven-metadata-myserver.xml
org/codehaus/mojo/cobertura-maven-plugin/2.0-SNAPSHOT/cobertura-maven-plugin-2.0-SNAPSHOT.pom.sha1
The content of maven-metadata-central.xml is
<metadata>
<plugins>
<plugin>
<name>Maven 2 Javacc Plugin</name>
<prefix>javacc</prefix>
<artifactId>javacc-maven-plugin</artifactId>
</plugin>
<plugin>
<name>Maven 2 SableCC Plugin</name>
<prefix>sablecc</prefix>
<artifactId>sablecc-maven-plugin</artifactId>
</plugin>
</plugins>
</metadata>
Help would be greatly appreciated. I must precise that things are ok
when the plugin is used locally.
Thanks,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]