Skip to content

Instantly share code, notes, and snippets.

@edwise
Last active August 22, 2021 16:10
Show Gist options
  • Save edwise/a26260ee2a2eeac663cd to your computer and use it in GitHub Desktop.
Save edwise/a26260ee2a2eeac663cd to your computer and use it in GitHub Desktop.
How to exclude files in jacoco coverage (maven configuration)
...
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.mavenplugin.version}</version>
<configuration>
<excludes>
<exclude>**/com/edwise/completespring/config/*</exclude>
</excludes>
</configuration>
<executions>
...
</executions>
</plugin>
...
@jorgealfonsogarcia
Copy link

Excellent! I hardly find this solution and it works perfect. Thanks!

@tanmoy281
Copy link

Works perfectly, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment