title: Maven jacoco excludes does not work
body: <pre><code> &lt;plugin&gt;
                  &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
                  &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;0.8.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;!-- remove haltOnFailure to purposely fail build once we recover coverage back to 70% --&gt;
                      &lt;haltOnFailure&gt;false&lt;/haltOnFailure&gt;
                      &lt;rules&gt;
                          &lt;rule&gt;
                              &lt;element&gt;CLASS&lt;/element&gt;
                              &lt;limits&gt;
                                  &lt;limit&gt;
                                      &lt;counter&gt;LINE&lt;/counter&gt;
                                      &lt;value&gt;COVEREDRATIO&lt;/value&gt;
                                      &lt;minimum&gt;0.70&lt;/minimum&gt;
                                  &lt;/limit&gt;
                                  &lt;limit&gt;
                                      &lt;counter&gt;BRANCH&lt;/counter&gt;
                                      &lt;value&gt;COVEREDRATIO&lt;/value&gt;
                                      &lt;minimum&gt;0.70&lt;/minimum&gt;
                                  &lt;/limit&gt;
                              &lt;/limits&gt;
                              &lt;excludes&gt;
                                  &lt;!-- exclude domain objects --&gt;
                                  &lt;exclude&gt;com/path/to/classes/**/*&lt;/exclude&gt;                               
                              &lt;/excludes&gt;
                          &lt;/rule&gt;
                      &lt;/rules&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;default-prepare-agent&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;prepare-agent&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;check&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;check&lt;/goal&gt;
                              &lt;goal&gt;report&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;phase&gt;verify&lt;/phase&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
  </code></pre>
  
  <p><strong>Expected behaviour:</strong> The HTML report at target/site/jacoco/index.html does not contain a row for com/path/to/classes</p>
  
  <p><strong>Actual behaviour:</strong> The HTML report at target/site/jacoco/index.html includes a row for com/path/to/classes which causes the coverage to be reported as (in my case) 32%, proving that this package is being included <strong>and should not be</strong>.</p>
  
  <p><a href="https://i.stack.imgur.com/15ECK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/15ECK.png" alt="enter image description here"></a></p>
  
  <p>I must be doing something wrong?</p>