Sonar and Maven

Fact to know: though it does not say so in the documentation, Sonar requires a fairly recent version of Maven. Version 2.0.4 failed, but 2.0.8 worked.

Also, do not forget to force update of all dependencies, especially plugins.

So, when running the Sonar plugin, add -U and -cpu:

mvn org.codehaus.sonar:sonar-maven-plugin:1.2:sonar -U -cpu

About Eric Lefevre-Ardant

Member of the PolySpot Tech Team.
This entry was posted in java, maven, sonar. Bookmark the permalink.

One Response to Sonar and Maven

  1. Pingback: ericlefevre » Sonar and Hudson

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>