Hi @Peter_Nelissen,
One thing I understood from the discussion on JaCoCo issue 974 is that maven lifecycle is not suitable to run something after all modules. A colleague helped me to find the following solution: let’s run the report in a command that comes after the full build:
$ mvn clean install
$ mvn jacoco:report sonar:sonar
So here is my proposal to migrate your jacoco-example1
from native to XML format:
You just need to remove the “sonar.jacoco.reportPath” property and set the “jacoco.dataFile”.
Do not merge it, but can you confirm that it works for you?