I have added configuration with excluded files in jacoco maven plugin but coverage under jacoco.exec is not reflecting to exclude files
I already tried adding exclusion at level: coverage-check, coverage-report, post-integration-test as well as directly under plugin level. Exclude option is working only for index.html file but coverage under jacoco.exec is not reflecting to exclude files . One of example fo exclusion:
<id>coverage-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<!--<dataFile>target/jacoco.exec</dataFile>-->
<rules>
<rule implementation="org.jacoco.maven.RuleConfiguration">
<!--<element>CLASS</element>-->
<excludes>
<exclude>**/*/com/xyz/*.class</exclude>
</excludes>
</rule>
</rules>
</configuration>
</execution>
</executions>
line coverage in index.html is coming as 64% but jacoco.exec shows coverage as 23% only