It is recommended to run the data collect on a regular basis to get the best from the Sonar platform. Continuous Integration engines are the perfect tool to do so.
- 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.