
|
Maven load wrong plugin version
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
|

|
Re: 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
|

|
AW: Maven load wrong plugin version
Hello Freddy,
no, that doesn't seem to be the problem. My command
line looks like
mvn clean install sonar:sonar
Andreas
Vogler
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
|

|
Re: Maven load wrong plugin version
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
|

|
AW: Maven load wrong plugin version
Hi,
you were right. There was an explicit referrence to version
1.7 in the pom. Sometimes it's just too obvious to see ;-)
Thanks.
Mit freundlichen Grüßen, Andreas Vogler
------
Kontakt -------
Andreas Vogler Technischer Leiter
Geneon media
solutions gmbh Gutenstetter Str. 8a 90449 Nürnberg
HRB Nürnberg:
17193 Geschäftsführer: Yong-Harry Steiert
Tel.: 0911/36 78 88 -
21 Mobil: 0179/52 09 17 1
Fax: 0911/36 78 88 -
20
www.geneon.de www.layoutGeNERAtor.de
Weitere Mitglieder aus
der Willmy MediaGroup:
IRS
GmbH
- www.irs-nbg.de Willmy PrintMedia
GmbH -
www.willmy.de Willmy Consult & Content GmbH -
www.willmycc.de
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
|

|
Re: Maven load wrong plugin version

Some parts of this message have been removed.
Learn more about Nabble's security policy.
In response to http://www.nabble.com/Maven-load-wrong-plugin-version-td24287445.html
I have the same issue, but from Sonar 1.6 to 1.8. Since the Hudson plugin (1.0.1) no longer lets you specify the sonar version, it keeps trying the 1.6 version of sonar-maven-plugin. From command line, sonar:sonar tries 1.6 too. - mvn help:effective-pom confirms there is no explicit sonar-maven-plugin 1.6 definition. - mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar works fine from command line (with properties)
[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------
[INFO] Sonar plugin (1.6) and server (1.8) version do not match.
Either update your server to the 1.6 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar plugin command.
[INFO] ------------------------------------------------------------------------
Please help.
Thanks, Ben
|

|
Re: Maven load wrong plugin version
Hello Ben, Can you try to add a new Sonar to Hudson and let me know if it works on your project ? By the way, which version of Hudson are you on ? Olivier
On Fri, Jul 3, 2009 at 10:44 PM, Ben Tatham <bentatham@...> wrote:
In response to http://www.nabble.com/Maven-load-wrong-plugin-version-td24287445.html
I have the same issue, but from Sonar 1.6 to 1.8. Since the Hudson plugin (1.0.1) no longer lets you specify the sonar version, it keeps trying the 1.6 version of sonar-maven-plugin. From command line, sonar:sonar tries 1.6 too.
- mvn help:effective-pom confirms there is no explicit sonar-maven-plugin 1.6 definition. - mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar works fine from command line (with properties)
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Sonar plugin (1.6) and server (1.8) version do not match.
Either update your server to the 1.6 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar plugin command.
[INFO] ------------------------------------------------------------------------
Please help.
Thanks, Ben
|

|
Re: Maven load wrong plugin version

Some parts of this message have been removed.
Learn more about Nabble's security policy.
- Hudson 1.314 - I'm not sure what you mean by "add a new Sonar to Hudson".
Ben ----- "Olivier Gaudin" < gaudol@...> wrote:
> Hello Ben, > > Can you try to add a new Sonar to Hudson and let me know if it works on your project ? > By the way, which version of Hudson are you on ? > Olivier > >
> > > On Fri, Jul 3, 2009 at 10:44 PM, Ben Tatham <bentatham@...> wrote: >
> In response to http://www.nabble.com/Maven-load-wrong-plugin-version-td24287445.html
> I have the same issue, but from Sonar 1.6 to 1.8. Since the Hudson plugin (1.0.1) no longer lets you specify the sonar version, it keeps trying the 1.6 version of sonar-maven-plugin. From command line, sonar:sonar tries 1.6 too.
- mvn help:effective-pom confirms there is no explicit sonar-maven-plugin 1.6 definition. - mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar works fine from command line (with properties) >
[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------
[INFO] Sonar plugin (1.6) and server (1.8) version do not match.
Either update your server to the 1.6 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar plugin command.
[INFO] ------------------------------------------------------------------------ >
Please help. >
Thanks, Ben >
|

|
Re: Maven load wrong plugin version
Can you check if you don't have a prefix defined in the settings.xml ? Olivier
On Mon, Jul 6, 2009 at 2:01 PM, Ben Tatham <bentatham@...> wrote:
- Hudson 1.314 - I'm not sure what you mean by "add a new Sonar to Hudson".
Ben ----- "Olivier Gaudin" < gaudol@...> wrote:
> Hello Ben, > > Can you try to add a new Sonar to Hudson and let me know if it works on your project ? > By the way, which version of Hudson are you on ? > Olivier >
>
> > > On Fri, Jul 3, 2009 at 10:44 PM, Ben Tatham <bentatham@...> wrote:
>
> In response to http://www.nabble.com/Maven-load-wrong-plugin-version-td24287445.html
> I have the same issue, but from Sonar 1.6 to 1.8. Since the Hudson plugin (1.0.1) no longer lets you specify the sonar version, it keeps trying the 1.6 version of sonar-maven-plugin. From command line, sonar:sonar tries 1.6 too.
- mvn help:effective-pom confirms there is no explicit sonar-maven-plugin 1.6 definition. - mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar works fine from command line (with properties)
>
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Sonar plugin (1.6) and server (1.8) version do not match.
Either update your server to the 1.6 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar plugin command.
[INFO] ------------------------------------------------------------------------ >
Please help. >
Thanks, Ben
>
|

|
Re: Maven load wrong plugin version

Some parts of this message have been removed.
Learn more about Nabble's security policy.
In settings.xml, I have
<pluginGroups> <pluginGroup>org.codehaus.sonar</pluginGroup> </pluginGroups>
If I didn't have that, I get a different error but no plugin defined for "org.apache.maven.plugins:sonar".
But I get this error, so that is not it. [INFO] Sonar plugin (1.6) and server (1.8) version do not match.
Either update your server to the 1.6 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar plugin command.
----- "Olivier Gaudin" < gaudol@...> wrote:
> Can you check if you don't have a prefix defined in the settings.xml ? > Olivier > >
> > > On Mon, Jul 6, 2009 at 2:01 PM, Ben Tatham <bentatham@...> wrote: >
> - Hudson 1.314 - I'm not sure what you mean by "add a new Sonar to Hudson". >
Ben > > ----- "Olivier Gaudin" < gaudol@...> wrote:
> > Hello Ben, > > > > Can you try to add a new Sonar to Hudson and let me know if it works on your project ? > > By the way, which version of Hudson are you on ? > > Olivier > > >
>
> > > > > > On Fri, Jul 3, 2009 at 10:44 PM, Ben Tatham <bentatham@...> wrote: >
>
> > In response to http://www.nabble.com/Maven-load-wrong-plugin-version-td24287445.html
> > I have the same issue, but from Sonar 1.6 to 1.8. Since the Hudson plugin (1.0.1) no longer lets you specify the sonar version, it keeps trying the 1.6 version of sonar-maven-plugin. From command line, sonar:sonar tries 1.6 too.
- mvn help:effective-pom confirms there is no explicit sonar-maven-plugin 1.6 definition. - mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar works fine from command line (with properties) >
>
[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------
[INFO] Sonar plugin (1.6) and server (1.8) version do not match.
Either update your server to the 1.6 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar plugin command.
[INFO] ------------------------------------------------------------------------ > >
Please help. > >
Thanks, Ben
> >
>
|

|
Re: Maven load wrong plugin version
That is it ! Then have a look at the FAQ : http://docs.codehaus.org/display/SONAR/Frequently+Asked+Questions#FrequentlyAskedQuestions-Theplugin%27org.apache.maven.plugins%3Amavensonarplugin%27doesnotexistornovalidversioncouldbefound
That should help Olivier
On Mon, Jul 6, 2009 at 2:52 PM, Ben Tatham <bentatham@...> wrote:
In settings.xml, I have
<pluginGroups> <pluginGroup>org.codehaus.sonar</pluginGroup>
</pluginGroups>
If I didn't have that, I get a different error but no plugin defined for "org.apache.maven.plugins:sonar".
But I get this error, so that is not it.
[INFO] Sonar plugin (1.6) and server (1.8) version do not match.
Either update your server to the 1.6 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar plugin command.
----- "Olivier Gaudin" < gaudol@...> wrote:
> Can you check if you don't have a prefix defined in the settings.xml ? > Olivier > >
> > > On Mon, Jul 6, 2009 at 2:01 PM, Ben Tatham <bentatham@...> wrote: >
> - Hudson 1.314 - I'm not sure what you mean by "add a new Sonar to Hudson". >
Ben > > ----- "Olivier Gaudin" < gaudol@...> wrote:
> > Hello Ben, > > > > Can you try to add a new Sonar to Hudson and let me know if it works on your project ? > > By the way, which version of Hudson are you on ?
> > Olivier > > >
>
> > > > > > On Fri, Jul 3, 2009 at 10:44 PM, Ben Tatham <bentatham@...> wrote:
>
>
> > In response to http://www.nabble.com/Maven-load-wrong-plugin-version-td24287445.html
> > I have the same issue, but from Sonar 1.6 to 1.8. Since the Hudson plugin (1.0.1) no longer lets you specify the sonar version, it keeps trying the 1.6 version of sonar-maven-plugin. From command line, sonar:sonar tries 1.6 too.
- mvn help:effective-pom confirms there is no explicit sonar-maven-plugin 1.6 definition. - mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar works fine from command line (with properties)
>
>
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Sonar plugin (1.6) and server (1.8) version do not match.
Either update your server to the 1.6 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar plugin command.
[INFO] ------------------------------------------------------------------------ > >
Please help. > >
Thanks, Ben
> >
>
|

|
Re: Maven load wrong plugin version

Some parts of this message have been removed.
Learn more about Nabble's security policy.
The FAQ helped...I had tried deleting local repo and nexus repo before, but apparently not well enough. Deleting org/codehaus/mojo and org/codehaus/sonar fixed it.
Thanks, Ben ----- "Olivier Gaudin" < gaudol@...> wrote:
> That is it ! > > Then have a look at the FAQ : http://docs.codehaus.org/display/SONAR/Frequently+Asked+Questions#FrequentlyAskedQuestions-Theplugin%27org.apache.maven.plugins%3Amavensonarplugin%27doesnotexistornovalidversioncouldbefound>
> That should help > Olivier > >
> > > On Mon, Jul 6, 2009 at 2:52 PM, Ben Tatham <bentatham@...> wrote: >
> In settings.xml, I have >
<pluginGroups> <pluginGroup>org.codehaus.sonar</pluginGroup>
</pluginGroups> >
If I didn't have that, I get a different error but no plugin defined for "org.apache.maven.plugins:sonar". >
But I get this error, so that is not it.
> [INFO] Sonar plugin (1.6) and server (1.8) version do not match.
Either update your server to the 1.6 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar plugin command. > >
----- "Olivier Gaudin" < gaudol@...> wrote:
> > Can you check if you don't have a prefix defined in the settings.xml ? > > Olivier > > > >
> > > > > > On Mon, Jul 6, 2009 at 2:01 PM, Ben Tatham <bentatham@...> wrote: > >
> > - Hudson 1.314 - I'm not sure what you mean by "add a new Sonar to Hudson". > >
Ben > > > ----- "Olivier Gaudin" < gaudol@...> wrote:
> > > Hello Ben, > > > > > > Can you try to add a new Sonar to Hudson and let me know if it works on your project ? > > > By the way, which version of Hudson are you on ? >
> > Olivier > > > > >
>
> > > > > > > > > On Fri, Jul 3, 2009 at 10:44 PM, Ben Tatham <bentatham@...> wrote: >
>
>
> > > In response to http://www.nabble.com/Maven-load-wrong-plugin-version-td24287445.html
> > > I have the same issue, but from Sonar 1.6 to 1.8. Since the Hudson plugin (1.0.1) no longer lets you specify the sonar version, it keeps trying the 1.6 version of sonar-maven-plugin. From command line, sonar:sonar tries 1.6 too.
- mvn help:effective-pom confirms there is no explicit sonar-maven-plugin 1.6 definition. - mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar works fine from command line (with properties) >
>
>
[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------
[INFO] Sonar plugin (1.6) and server (1.8) version do not match.
Either update your server to the 1.6 plugin version or launch
the mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar plugin command.
[INFO] ------------------------------------------------------------------------ > > >
Please help. > > >
Thanks, Ben
> > >
> >
>
|