« Return to Thread: Maven load wrong plugin version

Re: Maven load wrong plugin version

by Freddy Mallet :: Rate this Message:

Reply to Author | View in Thread

Andreas,

Perhaps, your pom.xml file or your parent pom.xml file specify the maven sonar plugin version to be used. Could you confirm that there is nothing which relates to sonar in your pom.xml files ?

Thanks
Freddy


On Wed, Jul 1, 2009 at 1:14 PM, Andreas Vogler <av@...> wrote:
Hello Freddy,
 
no, that doesn't seem to be the problem. My command line looks like
 
mvn clean install sonar:sonar

  Andreas Vogler

Von: Freddy Mallet [mailto:freddy.mallet@...]
Gesendet: Mittwoch, 1. Juli 2009 12:55
An: user@...
Betreff: Re: [sonar-user] Maven load wrong plugin version

Hello Andreas,

Looks like you are launching the "mvn org.codehaus.sonar:sonar-maven-plugin:1.7:sonar" command instead of "mvn sonar:sonar" to analyze your project ?

Try with "mvn sonar:sonar", it should fix your issue.

Hope it helps,
Freddy

On Wed, Jul 1, 2009 at 12:12 PM, Andreas Vogler <av@...> wrote:
Hello all,

I'm trying to set up Sonar 1.9.2 for one of our projects but the maven build fails with the following message:

[INFO] Sonar plugin (1.7) and server (1.9.2) version do not matchExclusionPattern.
Either update your server to the 1.7 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.9.2:sonar plugin command.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch

My first thought was that Nexus might interfere but after removing the nexus mirror from maven's settings.xml there was no change.

I deleted the org/codehaus/sonar directory from my local maven repository to make sure there is no old version, but I can see that maven loads the plugin from http://repo1.maven.org/maven2/org/codehaus/sonar/sonar-maven-plugin/1.7/sonar-maven-plugin-1.7.pom. Isn't it supposed to load it from localhost? I can see the sonar server running on http://localhost:9000/deploy/maven/README.txt.

Any idea what could be wrong. Thanks for any hint.

Mit freundlichen Grüßen,
 Andreas Vogler

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

   http://xircles.codehaus.org/manage_email




 « Return to Thread: Maven load wrong plugin version