title: Error creating code coverage report with JaCoCo
body: <p>I'm trying to add report generation for code coverage using JaCoCo. The project is using Maven, so i have jacoco maven plugin configured like this:</p>
  
  <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;${jacoco.maven.plugin.version}&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;prepare-agent&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;prepare-agent&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;destFile&gt;${basedir}/target/coverage-reports/jacoco-unit.exec&lt;/destFile&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;report&lt;/id&gt;
                      &lt;phase&gt;prepare-package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;report&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;dataFile&gt;${basedir}/target/coverage-reports/jacoco-unit.exec&lt;/dataFile&gt;
                          &lt;outputDirectory&gt;${basedir}/target/jacoco&lt;/outputDirectory&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>And surefire plugin like this:</p>
  
  <pre><code>         &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;${maven.surefire.plugin.version}&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;argLine&gt;${argLine} -XX:-UseSplitVerifier&lt;/argLine&gt;
                  &lt;printSummary&gt;true&lt;/printSummary&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/selenium/**/*.java&lt;/exclude&gt;
                  &lt;excludes&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>But in the end of running </p>
  
  <blockquote>
    <p>mvn clean package</p>
  </blockquote>
  
  <p>i'm getting such error: </p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report (report) on project LMS: An error has occurred in JaCoCo Test report generation. Error while creating report: invalid literal/length code -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException" rel="noreferrer">http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException</a></p>
  </blockquote>
  
  <p>The thing is, on another project same thing works like a charm. I couldn't find a solution online. Anyone has any ideas?</p>
  
  <p>Using -e switch i get the following errors:</p>
  
  <pre><code>org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report (report) on project LMS: An error has occurred in JaCoCo Test report generation.
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  Caused by: org.apache.maven.plugin.MojoExecutionException: An error has occurred in JaCoCo Test report generation.
          at org.jacoco.maven.AbstractReportMojo.execute(AbstractReportMojo.java:180)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
          ... 20 more
  Caused by: org.apache.maven.reporting.MavenReportException: Error while creating report: invalid literal/length code
          at org.jacoco.maven.AbstractReportMojo.executeReport(AbstractReportMojo.java:196)
          at org.jacoco.maven.AbstractReportMojo.execute(AbstractReportMojo.java:178)
          ... 22 more
  Caused by: java.util.zip.ZipException: invalid literal/length code
          at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
          at java.util.zip.ZipInputStream.read(ZipInputStream.java:193)
          at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
          at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
          at org.jacoco.core.internal.ContentTypeDetector.readInt(ContentTypeDetector.java:95)
          at org.jacoco.core.internal.ContentTypeDetector.determineType(ContentTypeDetector.java:68)
          at org.jacoco.core.internal.ContentTypeDetector.&lt;init&gt;(ContentTypeDetector.java:63)
          at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:172)
          at org.jacoco.core.analysis.Analyzer.analyzeZip(Analyzer.java:246)
          at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
          at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208)
          at org.jacoco.maven.BundleCreator.createBundle(BundleCreator.java:78)
          at org.jacoco.maven.AbstractReportMojo.createReport(AbstractReportMojo.java:219)
          at org.jacoco.maven.AbstractReportMojo.executeReport(AbstractReportMojo.java:193)
          ... 23 more
  </code></pre>