Hi,
I think there is a trouble (issue) concerning with mixing enabled in the
repository declaration.
Look at
http://maven.apache.org/guides/development/guide-testing-development-plu
gins.html.

    <!-- The releases element here is due to an issue in Maven 2.0 that
will be fixed in future releases.
         This should be able to be disabled altogether. -->

Perso in my settings, I never set plugin repository enabled to false.
This workaround save me ;-)

Note I don't know the issue id concerning this.

- Olivier

-----Message d'origine-----
De : Arnaud Bailly [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 21 mars 2006 10:13
À : users@maven.apache.org
Objet : [m202] Custom built plugin


Hi,
I am trying to use cobertura plugin  with maven2.0.2. I have compiled
version 1377 of the sources which AFAICT is working ok. When built and
installed locally, everything works fine. But when I deploy the compiled
plugin to a shared internal repository, things got wrong. Installation
of plugin is  OK, I have added my repository in POM with the following
XML 

 <pluginRepositories>
  
  <pluginRepository>
   <id>my-server</id>
   <url>http://myserver/maven2</url>
   <snapshots>
    <enabled>true</enabled>
   </snapshots>
   <releases>
    <enabled>false</enabled>
   </releases>
  </pluginRepository>
 </pluginRepositories>

when I do a mvn -X site, I got the following error trace :

+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from:
'/home/nono/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/usr/local/maven/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Retrieving parent-POM from the repository for project:
proj:socle-util:jar:1.0-SNAPSHOT [DEBUG] Skipping disabled repository
central [DEBUG] majpe-base: using locally installed snapshot [INFO]
------------------------------------------------------------------------
----
[INFO] Building Socle : Utilitaires
[INFO]    task-segment: [site]
[INFO]
------------------------------------------------------------------------
----
[DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from
repository central [DEBUG] Retrieving parent-POM from the repository for
project: null:maven-site-plugin:maven-plugin:2.0-beta-4
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] cobertura-maven-plugin: using locally installed snapshot [DEBUG]
Retrieving parent-POM from the repository for project:
null:cobertura-maven-plugin:maven-plugin:2.0-SNAPSHOT
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] mojo-sandbox: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:mojo-sandbox:pom:2-SNAPSHOT [DEBUG] cobertura-maven-plugin: using
locally installed snapshot [DEBUG] maven-surefire-plugin: resolved to
version 2.1.2 from repository central [DEBUG] Retrieving parent-POM from
the repository for project:
null:maven-surefire-plugin:maven-plugin:2.1.2
[DEBUG] cobertura-maven-plugin: using locally installed snapshot [DEBUG]
maven-javadoc-plugin: resolved to version 2.0-beta-3 from repository
central [DEBUG] Retrieving parent-POM from the repository for project:
null:maven-javadoc-plugin:maven-plugin:2.0-beta-3
[DEBUG]
org.apache.maven.plugins:maven-javadoc-plugin:maven-plugin:2.0-beta-3
(selected for runtime) [DEBUG] Retrieving parent-POM from the repository
for project: null:maven-project:jar:2.0.1
[DEBUG]   org.apache.maven:maven-project:jar:2.0.1 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-model:jar:2.0.1
[DEBUG]     org.apache.maven:maven-model:jar:2.0.1 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-utils:jar:1.0.5
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for
runtime)
[DEBUG]         classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profile:jar:2.0.1
[DEBUG]     org.apache.maven:maven-profile:jar:2.0.1 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-container-default:jar:1.0-alpha-9
[DEBUG] Retrieving parent-POM from the repository for project:
org.codehaus.plexus:plexus-containers:pom:1.0.3
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 (selected
for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG]         junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9
(selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG]       junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact-manager:jar:2.0.1
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0.1 (selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-repository-metadata:jar:2.0.1
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0.1
(selected for runtime)
[DEBUG]       org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
(selected for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact:jar:2.0.1
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0.1 (selected for
runtime)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0.1 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-api:jar:2.0.1
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact:jar:2.0
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1 (removed - nearer
found: 2.0)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer
found: 1.0.5)
[DEBUG]   commons-lang:commons-lang:jar:2.1 (selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3 (selected
for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer
found: 1.0.5)
[DEBUG]     classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
(removed - nearer found: 1.0-alpha-9)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-reporting-impl:jar:2.0 [DEBUG] Retrieving parent-POM from the
repository for project:
org.apache.maven.reporting:maven-reporting:pom:2.0
[DEBUG]   org.apache.maven.reporting:maven-reporting-impl:jar:2.0
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-project:jar:2.0
[DEBUG]     org.apache.maven:maven-project:jar:2.0 (removed - nearer
found: 2.0.1)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-reporting-api:jar:2.0 [DEBUG] Retrieving parent-POM from the
repository for project:
org.apache.maven.reporting:maven-reporting:pom:2.0
[DEBUG]     org.apache.maven.reporting:maven-reporting-api:jar:2.0
(selected for runtime)
[DEBUG]       doxia:doxia-sink-api:jar:1.0-alpha-4 (selected for
runtime)
[DEBUG]     commons-validator:commons-validator:jar:1.1.4 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-api:jar:2.0
[DEBUG]     org.apache.maven:maven-plugin-api:jar:2.0 (removed - nearer
found: 2.0.1)
[DEBUG]     oro:oro:jar:2.0.7 (selected for runtime)
[DEBUG]     doxia:doxia-core:jar:1.0-alpha-4 (selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-javadoc-plugin:2.0-beta-3:javadoc' -->
[DEBUG]   (f) author = true
[DEBUG]   (f) bottom = Copyright {inceptionYear}-{currentYear} null. All
Rights Reserved.
[DEBUG]   (f) breakiterator = false
[DEBUG]   (f) charset = ISO-8859-1
[DEBUG]   (f) docfilessubdirs = false
[DEBUG]   (f) doctitle = Socle : Utilitaires 1.0-SNAPSHOT API
[DEBUG]   (f) isOffline = false
[DEBUG]   (f) links = []
[DEBUG]   (f) linksource = false
[DEBUG]   (f) nocomment = false
[DEBUG]   (f) nodeprecated = false
[DEBUG]   (f) nodeprecatedlist = false
[DEBUG]   (f) nohelp = false
[DEBUG]   (f) noindex = false
[DEBUG]   (f) nonavbar = false
[DEBUG]   (f) nosince = false
[DEBUG]   (f) notree = false
[DEBUG]   (f) offlineLinks = []
[DEBUG]   (f) old = false
[DEBUG]   (f) outputDirectory = target/javadoc
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) public_ = false
[DEBUG]   (f) quiet = false
[DEBUG]   (f) serialwarn = false
[DEBUG]   (f) showPackage = true
[DEBUG]   (f) showPrivate = false
[DEBUG]   (f) showProtected = false
[DEBUG]   (f) splitindex = false
[DEBUG]   (f) tags = []
[DEBUG]   (f) use = true
[DEBUG]   (f) verbose = false
[DEBUG]   (f) version = true
[DEBUG]   (f) windowtitle = Socle : Utilitaires 1.0-SNAPSHOT API
[DEBUG] -- end configuration --
[DEBUG] maven-pmd-plugin: resolved to version 2.0-beta-1 from repository
central [DEBUG] Retrieving parent-POM from the repository for project:
null:maven-pmd-plugin:maven-plugin:2.0-beta-1
[DEBUG]
org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:2.0-beta-1
(selected for runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1 (selected for
runtime)
[DEBUG]   pmd:pmd:jar:3.4 (selected for runtime)
[DEBUG]     xerces:xercesImpl:jar:2.6.2 (selected for runtime)
[DEBUG]     jaxen:jaxen:jar:1.1-beta-7 (selected for runtime)
[DEBUG]       jaxen:jaxen:jar:1.1-beta-4 (removed - causes a cycle in
the graph)
[DEBUG]       dom4j:dom4j:jar:1.5.2 (selected for runtime)
[DEBUG]         stax:stax-api:jar:1.0 (selected for runtime)
[DEBUG]         pull-parser:pull-parser:jar:2 (selected for runtime)
[DEBUG]         jaxme:jaxme-api:jar:0.3 (selected for runtime)
[DEBUG] While downloading xml-apis:xml-apis:2.0.2
  This artifact has been relocated to xml-apis:xml-apis:1.0.b2.


[DEBUG]         xml-apis:xml-apis:jar:1.0.b2 (selected for runtime)
[DEBUG]         msv:xsdlib:jar:20030807 (selected for runtime)
[DEBUG]         xpp3:xpp3:jar:1.1.3.3 (selected for runtime)
[DEBUG]       jaxen:jaxen:jar:1.0-FCS (removed - causes a cycle in the
graph)
[DEBUG]       jdom:jdom:jar:1.0 (selected for runtime)
[DEBUG]       xom:xom:jar:1.0b3 (selected for runtime)
[DEBUG]         xerces:xmlParserAPIs:jar:2.6.1 (selected for runtime)
[DEBUG]         xerces:xercesImpl:jar:2.2.1 (removed - nearer found:
2.6.2)
[DEBUG]         xalan:xalan:jar:2.6.0 (selected for runtime)
[DEBUG] While downloading xml-apis:xml-apis:2.0.2
  This artifact has been relocated to xml-apis:xml-apis:1.0.b2.


[DEBUG] While downloading icu4j:icu4j:2.6.1
  This artifact has been relocated to com.ibm.icu:icu4j:2.6.1.


[DEBUG]         com.ibm.icu:icu4j:jar:2.6.1 (selected for runtime)
[DEBUG] While downloading servletapi:servletapi:2.4
  This artifact has been relocated to javax.servlet:servlet-api:2.4.


[DEBUG]         javax.servlet:servlet-api:jar:2.4 (selected for runtime)
[DEBUG] While downloading tagsoup:tagsoup:0.9.7
  This artifact has been relocated to
org.ccil.cowan.tagsoup:tagsoup:0.9.7.


[DEBUG]         org.ccil.cowan.tagsoup:tagsoup:jar:0.9.7 (selected for
runtime)
[DEBUG]       xerces:xmlParserAPIs:jar:2.6.1 (removed - nearer found:
2.6.2)
[DEBUG]       xerces:xmlParserAPIs:jar:2.6.2 (selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for
runtime)
[DEBUG]     classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG]   saxpath:saxpath:jar:1.0-FCS (selected for runtime)
[DEBUG]   org.apache.maven.reporting:maven-reporting-impl:jar:2.0
(selected for runtime)
[DEBUG]     org.apache.maven:maven-project:jar:2.0 (selected for
runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected
for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG]         junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0 (selected for
runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-model:jar:2.0
[DEBUG]       org.apache.maven:maven-model:jar:2.0 (selected for
runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact-manager:jar:2.0
[DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0 (selected
for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-repository-metadata:jar:2.0
[DEBUG]         org.apache.maven:maven-repository-metadata:jar:2.0
(selected for runtime)
[DEBUG]           org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 (selected for
runtime)
[DEBUG]           org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profile:jar:2.0
[DEBUG]       org.apache.maven:maven-profile:jar:2.0 (selected for
runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed -
nearer found: 1.0.5)
[DEBUG]     org.apache.maven.reporting:maven-reporting-api:jar:2.0
(selected for runtime)
[DEBUG]       doxia:doxia-sink-api:jar:1.0-alpha-4 (selected for
runtime)
[DEBUG]     commons-validator:commons-validator:jar:1.1.4 (selected for
runtime)
[DEBUG]     org.apache.maven:maven-plugin-api:jar:2.0 (removed - nearer
found: 2.0.1)
[DEBUG]     oro:oro:jar:2.0.7 (selected for runtime)
[DEBUG]     doxia:doxia-core:jar:1.0-alpha-4 (selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-pmd-plugin:2.0-beta-1:cpd' -->
[DEBUG]   (f) outputDirectory = target/site
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-pmd-plugin:2.0-beta-1:pmd' -->
[DEBUG]   (f) outputDirectory = target/site
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) rulesets = [Ljava.lang.String;@1fc6e42
[DEBUG] -- end configuration --
[DEBUG] cobertura-maven-plugin: using locally installed snapshot [DEBUG]
Artifact not found - using stub model: Unable to determine the latest
version

  org.codehaus.mojo:cobertura-maven-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM
org.codehaus.mojo:cobertura-maven-plugin:pom:LATEST
[DEBUG] cobertura-maven-plugin: using locally installed snapshot [DEBUG]
Artifact not found - using stub model: Unable to determine the release
version

  org.codehaus.mojo:cobertura-maven-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM
org.codehaus.mojo:cobertura-maven-plugin:pom:RELEASE
[INFO]
------------------------------------------------------------------------
----
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
----
[INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not
exist or no valid version could be found [INFO]
------------------------------------------------------------------------
----
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid
version could be found
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(D
efaultLifecycleExecutor.java:1287)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLi
fecycleExecutor.java:654)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLi
fecycleExecutor.java:634)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:509)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:472)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:139)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
org.apache.maven.plugin.version.PluginVersionNotFoundException: The
plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no
valid version could be found
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:225)
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveRepor
tPluginVersion(DefaultPluginVersionManager.java:94)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultP
luginManager.java:477)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(D
efaultLifecycleExecutor.java:1258)
        ... 19 more
[INFO]
------------------------------------------------------------------------
----
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Mar 21 09:59:59 CET 2006
[INFO] Final Memory: 5M/10M
[INFO]
------------------------------------------------------------------------
----

Help would be greatly appreciated, of course :-)
I have difficulties understanding the intricacies of version management
and repositories download with all these snapshots and releases... Could
somebody points me to a somewhat detailed report about how this is
working.

Thx
-- 
Arnaud Bailly, Dr. - Ingénieur de Recherche 
NORSYS 
1, rue de la Cense des Raines
ZAC du Moulin
59710 ENNEVELIN
Tel : (33) 3 28 76 56 76
Mob : (33) 6 17 12 19 78
Fax : (33) 3 28 76 57 00
Web : http://www.norsys.fr


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--------------------------------------------------------------------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-------------------------------------------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to