https://github.com/SonarSource/sonar-scanning-examples/tree/master/sonarqube-scanner-maven
Multi-module Apache Maven example
This project imports JaCoCo's aggregate XML report to be able to report coverage across modules as well as unit test coverage inside the module. For a basic example see basic maven project.
Usage
-
Build the project, execute all the tests and analyze the project with SonarQube Scanner for Maven:
mvn clean verify sonar:sonar