Commit a96a099
Wire Jacoco agent into surefire argLine
Surefire's <argLine> was hard-coded with the --add-opens flags only,
which overrode the ${argLine} property that
jacoco-maven-plugin:prepare-agent sets to attach the coverage agent.
As a result no jacoco.exec was ever produced and SonarCloud reported
0% coverage despite the suite running. Prepending @{argLine} lets
Maven late-bind the Jacoco-supplied javaagent flag alongside the
existing --add-opens, so coverage now lands in
target/site/jacoco/jacoco.xml where the Sonar scanner picks it up.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3e04c21 commit a96a099
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| |||
0 commit comments