I have configured our multi maven module repository so that each module could define different coverage threshold and exclude specific files which we don't want to consider in our coverage.
For example, one of our poms look like this:
<!-- JaCoCo thresholds -->
and in the parent pom:
When I build the modules I get for each one jacoco.exec file and also an index.html report which is generated under target/site/jacoco.
I attached the index.html report which I get in this module and it is exactly what I expected - 100% coverage of 1 class and the other I excluded and I don't see it.
HOWEVER in jenkins, as you can see also in the screenshot, I DO get this other class which I have excluded.
My question is why? Isn't the jacoco jenkins plugin refers to the exclusions from the poms?
I don't want to exclude classes from the jenkins plugin itself because I might have 50 classes I would like to exclude from different modules and want to change it in the poms and not in our job...
Thanks in advance for any help that could clarify my misunderstanding here...