- Create a build definition with the goal :
For multi-module projects, make sure that the --non-recursive build definition argument is NOT set.
- Once created, run this build definition on the root pom of the projects you want to sonar.
- For multi-module projects, make sure to check For multi modules project, load only root as recursive build when you create the project through the Continuum maven 2 wizard
The simplest way is to install the Sonar plugin for Hudson. Here is a screenshot :
You can also directly configure maven from jobs. In such a case do not use the 'Build a maven2 project' job type. It is not compatible because both Hudson and Sonar use maven embedder. You should use 'Build a free-style software project' instead.