title: cobertura-maven-plugin cannot find my groovy source code
body: <p>I am trying to use apache-aven to produce a code-coverage report for my Java/Groovy project. Attached is the pom file:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.hal_con&lt;/groupId&gt;
    &lt;artifactId&gt;scheduler&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;dependencies&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all --&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
        &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
        &lt;version&gt;2.4.8&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- https://mvnrepository.com/artifact/junit/junit --&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.12&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.codehaus.gmaven&lt;/groupId&gt;
          &lt;artifactId&gt;gmaven-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.5&lt;/version&gt;
          &lt;configuration&gt;
            &lt;providerSelection&gt;1.8&lt;/providerSelection&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;goals&gt;
                &lt;goal&gt;compile&lt;/goal&gt;
                &lt;goal&gt;testCompile&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
    &lt;reporting&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.codehaus.mojo/cobertura-maven-plugin --&gt;
          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;cobertura-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.7&lt;/version&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/reporting&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I've tried both the following:</p>
  
  <ul>
  <li><p>Adding the maven-source-plugin as suggested in: <a href="https://stackoverflow.com/questions/20366859/maven-cobertura-unable-to-locate-your-class-have-you-specified-the-source">Maven + Cobertura : Unable to locate [Your Class]. Have you specified the source directory?</a></p></li>
  <li><p>Adding the jxr-maven-plugin as suggested in:
  <a href="https://stackoverflow.com/questions/3202985/maven-cobertura-plugion-does-not-show-the-sources">maven-cobertura-plugion does not show the sources</a></p></li>
  </ul>
  
  <p>In both cases the results were exactly the same:</p>
  
  <blockquote>
    <p>Unable to locate com/hal_con/scheduler/FileParser.groovy. Have you specified the source directory?</p>
  </blockquote>
  
  <p>I figure that the maven-cobertura-plugin needs to be told where to find my groovy sources, but I cannot find an example.</p>