This is a demo multi-module project in java using powermock to unit test classes with static method calls. The code coverage is generated using jacoco you may then send metrics to SonarQube.
Jacoco and powermock don't work well together. In order to get coverage on classes using powermock, we must use jacoco in offline mode.
mvn clean install -Pcoverage
mvn sonar:sonar
If you need an instance of SonarQube:
docker run -d --name sonarqube -p 9000:9000 sonarqube
docker run -d --name sonarqube -p 9000:9000 sonarqube:developer
docker run -d --name sonarqube -p 9000:9000 sonarqube:enterprise