Trouble configuring JaCoCo in maven

This is because you launch maven with the explicit goal:

mvn ... jacoco:check

Running like this, the <configuration> section inside <execution> is not read; to make it work, use the default maven phase to which the jacoco:check goal is bound, which is verify

mvn clean verify

Or, alternatively, (but I cannot try this myself right now and I am not 100% sure), try using a default- prefix in the executions ids, like:

   <execution>
        <id>default-jacoco-check</id>
        <goals>
            <goal>check</goal>
        </goals>
        [...]
   </execution>

I had the same issue. To resolve it I added the phase tag into the coverage-check execution:

<id>coverage-check</id>
<phase>test</phase>
<goals>
     <goal>check</goal>
</goals>

And now the coverage-check executes every time I run "mvn clean package" command.