Hi, org.codehaus.sonar:sonar-maven-plugin:2.4.1 is the "real" plugin doing the job. The version of the plugin must match the version of the Sonar server.
To avoid having to update project poms or CI configuration each time there is a new version of Sonar (and to allow easy use of the shortcut mvn sonar:sonar), Sonar team developped an other plugin (called bootstrap) in the mojo groupId. When you run mvn sonar:sonar, this is in fact mvn org.codehaus.mojo:sonar-maven-plugin:LATEST that is executed. This plugin will ask the Sonar server for its version and run the correct version of org.codehaus.sonar:sonar-maven-plugin. In general you don't need to put anything in your pom to use Sonar. Hope that help. Julien > >De : "Johnson, Jonathan" <[email protected]> >À : "[email protected]" <[email protected]> >Cc : Mojo Developers List <[email protected]> >Envoyé le : Mar 4 janvier 2011, 17h 02min 29s >Objet : RE: [mojo-user] [ANN] Sonar Maven Plugin 2.0-beta-2 Released > > >If you go here: https://repository.sonatype.org > >And search for the artifact: sonar-maven-plugin > >You get a listing for both > ><dependency> > <groupId>org.codehaus.sonar</groupId> > <artifactId>sonar-maven-plugin</artifactId> > <version>2.4.1</version> ></dependency> > >And > ><dependency> > <groupId>org.codehaus.mojo</groupId> > <artifactId>sonar-maven-plugin</artifactId> > <version>2.0-beta-2</version> ></dependency> > >(Notice the version numbers differ and the groupids are different with “sonar” >and “mojo”) > >To me it would seem 2.4.1 is the latest, but it appears 2.0-beta-2 is the >latest. Perhaps one is for maven 3.x and the other is for maven 2.x? What is >the difference and which one to use? > > > ________________________________ >From:Evgeny Mandrikov [mailto:[email protected]] >Sent: Wednesday, December 22, 2010 3:24 AM >To: Mojo Users List >Cc: Mojo Developers List >Subject: [mojo-user] [ANN] Sonar Maven Plugin 2.0-beta-2 Released > >Hi, > >The Mojo team is pleased to announce the release of the Sonar Maven Plugin >version 2.0-beta-2. > >http://mojo.codehaus.org/sonar-maven-plugin/ > >Release Notes - Sonar Maven Plugin - Version 2.0-beta-2 > >** Bug > * [MOJO-1613] - SonarMojo should be marked with >"@requiresDependencyResolution test" > > >Enjoy, > >The Mojo team. > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
