# JaCoCo report not generated: the causes in Maven and Gradle > No jacoco.exec, or no report goal: the eight reasons a JaCoCo report is not generated in Maven and Gradle, each reproduced, from argLine to finalizedBy. Web page: https://supercov.com/blog/jacoco-report-not-generated · Published 2026-11-22 All Supercov pages for agents: https://supercov.com/llms.txt · Full text: https://supercov.com/llms-full.txt Eight ways to end up with no report, each reproduced with JaCoCo 0.8.16, Maven and Gradle, and the fix for each. A JaCoCo report needs two steps: the agent records `jacoco.exec` while the tests run, then the report goal turns it into HTML and XML. If the log says "Skipping JaCoCo execution due to missing execution data file", the first step failed. If there is a `jacoco.exec` but no `target/site/jacoco`, the second step never ran. ![A diagram of how a report is made: the tests run with the agent and write jacoco.exec, then the report goal writes target/site/jacoco. No exec file when argLine drops the agent, prepare-agent is missing, forkCount is 0 or tests are skipped. An exec file but no report when there is no report execution, it is bound to verify while you run mvn test, or Gradle runs only test.](https://supercov.com/assets/jacoco-report-not-generated-flow-1360.3d34eaca06.webp) *How a report is made, and which causes break each part.* ## Causes at a glance | Build | Cause | `jacoco.exec` | Report | | --- | --- | --- | --- | | Maven | No `report` execution | Yes | No | | Maven | `report` bound to `verify`, you ran `mvn test` | Yes | No | | Maven | No `prepare-agent` execution | No | No | | Maven | Surefire `` without `@{argLine}` | No | No | | Maven | `0` | No | No | | Maven | `-DskipTests`, or `jacoco:report` after `mvn compile` | No | No | | Gradle | `gradle test` without `jacocoTestReport` | Yes | No | | Gradle | `gradle jacocoTestReport` on its own after `clean` | No | No (task skipped) | ![A grid of eight setups against two outputs, jacoco.exec and the report. The working setup and argLine with @{argLine} write both. No report execution, the report bound to verify and gradle test without finalizedBy write only jacoco.exec. No prepare-agent, a replacing argLine and forkCount 0 write neither.](https://supercov.com/assets/jacoco-report-not-generated-grid-1360.6c18885247.webp) *What each setup left on disk, reproduced with JaCoCo 0.8.16.* We reproduced each one with JaCoCo 0.8.16, Maven 3.9.16, Surefire 3.5.4 and Gradle 9.7.1 on JDK 26, on a small project whose working setup writes the report on `mvn test`. ## The Maven setup that works ```xml org.jacoco jacoco-maven-plugin 0.8.16 prepare-agent reporttestreport ``` `prepare-agent` puts `-javaagent:…org.jacoco.agent-0.8.16-runtime.jar` into the `argLine` property; Surefire passes it to the forked test JVM. The `report` execution, bound to `test`, writes `target/site/jacoco`. Bind it to `verify` if you prefer, and then run `mvn verify`. ## Surefire argLine: the most common cause ```xml -Xmx512m ``` This replaced the agent's `argLine`. The tests ran without the agent, no `jacoco.exec` was written, and the report goal printed "Skipping JaCoCo execution due to missing execution data file". Keep the agent with late property evaluation: ```xml @{argLine} -Xmx512m ``` The report came back. `0` fails the same way: the tests run inside Maven's own JVM, where the agent was never attached. ## Gradle ```kotlin tasks.test { finalizedBy(tasks.jacocoTestReport) } ``` The `jacoco` plugin records `build/jacoco/test.exec` on every `gradle test`, but writes the report only when `jacocoTestReport` runs. `finalizedBy` runs it after every test run; `gradle test jacocoTestReport` works too. `gradle jacocoTestReport` alone does not run the tests: after `clean` it was skipped. Setting `jvmArgs` on the test task did not break the report, unlike Maven's `argLine`. ## What Supercov adds ```sh npx supercov -- mvn test npx supercov runs latest gaps ``` Supercov attaches its own measurement to the build it runs, so a missing agent or report goal does not apply. It records which test covered each line, with branches and MC/DC. See [JaCoCo exclude](https://supercov.com/blog/jacoco-exclude.md) to leave classes out of the report, [JaCoCo aggregate report](https://supercov.com/blog/jacoco-aggregate-report.md) for a multi-module build, and [Java code coverage tools](https://supercov.com/compare/java-code-coverage.md) for the alternatives.