I have a maven project and I want to use jacoco for code coverage. Here is the relevant section of my pom
jacoco
I solved the duplication issue by adding prepare-package to the report execution task:
prepare-package
org.jacoco jacoco-maven-plugin 0.8.5 prepare-agent prepare-agent report prepare-package report