Skip to content

Commit 915cfe5

Browse files
tastybentoclaude
andcommitted
Fix JaCoCo coverage not reaching SonarCloud
Surefire's hardcoded <argLine> block was replacing the ${argLine} property entirely, so JaCoCo's prepare-agent javaagent flag was discarded and jacoco.exec stayed empty. Prepend @{argLine} (late- binding syntax, evaluated after prepare-agent sets it) so both the JaCoCo agent and the --add-opens flags are active at test time. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4653110 commit 915cfe5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@
268268
<include>**/*Test??.java</include>
269269
</includes>
270270
<argLine>
271+
@{argLine}
271272
--add-opens java.base/java.lang=ALL-UNNAMED
272273
--add-opens java.base/java.math=ALL-UNNAMED
273274
--add-opens java.base/java.io=ALL-UNNAMED

0 commit comments

Comments
 (0)