title: Ignoring report generation for specific classes in cobertura maven plugin
body: <p>I've been using Cobertura plugin for report generation and instrumentation (with surefire).
  Here is the issue I am facing:</p>
  
  <blockquote>
    <p>I am unable to make the plugin ignore report generation for specific classes in my project.</p>
  </blockquote>
  
  <p>PF below the related excerpt from pom.xml, I have added the ignore tag, but that just ignores instrumentation for the ignored classes.</p>
  
  <p>I want the report for specific projects to not be generated at all.</p>
  
  <p>Firstly, due to my limited knowledge of both Maven and Conberture, I want to know is it possible, and if yes, then what are the changes I need to get done in pom.xml.</p>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>&lt;report&gt;
      &lt;!-- other plugins exist but are not important to be listed here I guess --&gt;   
      &lt;plugin&gt;
          &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
              &lt;skipTests&gt;false&lt;/skipTests&gt;
              &lt;systemProperties&gt;
                  &lt;property&gt;
                  &lt;name&gt;net.sourceforge.cobertura.datafile&lt;/name&gt;
                  &lt;value&gt;target/cobertura/cobertura.ser&lt;/value&gt;
                  &lt;/property&gt;
              &lt;/systemProperties&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
      &lt;!-- The following is the plugin for cobertura, which takes care of integration and report generation--&gt;
      &lt;plugin&gt;
          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;cobertura-maven-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
              &lt;check&gt;
                  &lt;branchRate&gt;50&lt;/branchRate&gt;
                  &lt;lineRate&gt;50&lt;/lineRate&gt;
                  &lt;haltOnFailure&gt;true&lt;/haltOnFailure&gt;
                  &lt;totalBranchRate&gt;50&lt;/totalBranchRate&gt;
                  &lt;totalLineRate&gt;50&lt;/totalLineRate&gt;
                  &lt;packageLineRate&gt;50&lt;/packageLineRate&gt;
                  &lt;packageBranchRate&gt;50&lt;/packageBranchRate&gt;
              &lt;/check&gt;
              &lt;instrumentation&gt;
                  &lt;ignores&gt;
                    &lt;ignore&gt;deshaw.dportal.alert.*&lt;/ignore&gt;
                    &lt;ignore&gt;deshaw.dportal.atc.*&lt;/ignore&gt;
                    &lt;ignore&gt;deshaw.dportal.basket.*&lt;/ignore&gt;
                    &lt;ignore&gt;deshaw.dportal.fcs.*&lt;/ignore&gt;
                    &lt;ignore&gt;deshaw.dportal.event.*&lt;/ignore&gt;
                    &lt;ignore&gt;deshaw.dportal.filings.*&lt;/ignore&gt;
                    &lt;ignore&gt;deshaw.dportal.glg.*&lt;/ignore&gt;
                    &lt;ignore&gt;deshaw.dportal.icp.*&lt;/ignore&gt;
                  &lt;/ignores&gt;
              &lt;/instrumentation&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  &lt;/report&gt;
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>This my directory structure:</p>
  
  <pre><code>module
  |
  |-apps
  |    |-alert
  |    |    |-src
  |    |    |-target
  |    |    |-pom.xml
  |    |-------------------
  |    |-company
  |    |    |-src
  |    |    |-target
  |    |    |-pom.xml
  |-----------------------
  |-jobs
  |    |-job1
  |    |    |-src
  |    |    |-target
  |    |    |-pom.xml
  |    |-job2
  |    |    |-src
  |    |    |-target
  |    |    |-pom.xml
  </code></pre>
  
  <p>I tried the following in module/pom.xml</p>
  
  <pre><code>&lt;instrumentation&gt;
      &lt;excludes&gt;
          &lt;exclude&gt;**/apps/*.*&lt;/exclude&gt;
      &lt;/excludes&gt;
  &lt;/instrumentation&gt;
  </code></pre>
  
  <p>I still get the reports being generated in both the alerts and company directory.</p>
  
  <p>Probably the exclude regex is not right?</p>