In the Maven site reports generated by JaCoCo, I get quite bad coverage because all of my compiled JSPs are included (and they are long). I tried the following in reporting
:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<exclude>target/classes/jsp/**/*.class</exclude>
</configuration>
</plugin>
Another similar-looking configuration is in the build
section of the POM for the prepare-package
phase. That doesn’t stop the JSP classes from being included in the report. How to avoid that?