Skip to content

Commit 65f6603

Browse files
authored
Merge pull request #197 from companieshouse/feature/set-jacoco-report-paths
Add missing sonar.jacoco.reports value for report paths
2 parents 51b62db + 42c17f2 commit 65f6603

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

pom.xml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<!--sonar configuration-->
4747
<sonar-maven-plugin.version>4.0.0.4121</sonar-maven-plugin.version>
4848
<sonar.java.binaries>${project.basedir}/target,${project.basedir}/target/*</sonar.java.binaries>
49+
<sonar.jacoco.reports>${project.basedir}/target/site</sonar.jacoco.reports>
4950
<sonar.token>${CODE_ANALYSIS_TOKEN}</sonar.token>
5051
<sonar.login></sonar.login>
5152
<sonar.password></sonar.password>
@@ -277,17 +278,6 @@
277278
</excludes>
278279
</configuration>
279280
<executions>
280-
<execution>
281-
<id>pre-unit-test</id>
282-
<goals>
283-
<goal>prepare-agent</goal>
284-
</goals>
285-
<configuration>
286-
<!-- Sets the path to the file which contains the execution model. -->
287-
<destFile>${sonar.jacoco.reports}/jacoco.exec</destFile>
288-
<propertyName>surefireArgLine</propertyName>
289-
</configuration>
290-
</execution>
291281
<execution>
292282
<id>post-unit-test</id>
293283
<phase>test</phase>
@@ -307,7 +297,7 @@
307297
</goals>
308298
<configuration>
309299
<!-- Sets the path to the file which contains the execution model. -->
310-
<destFile>${sonar.jacoco.reports}/jacoco-it.exec</destFile>
300+
<destFile>${project.basedir}/target/jacoco-it.exec</destFile>
311301
<propertyName>failsafeArgLine</propertyName>
312302
</configuration>
313303
</execution>
@@ -318,7 +308,7 @@
318308
<goal>report</goal>
319309
</goals>
320310
<configuration>
321-
<dataFile>${sonar.jacoco.reports}/jacoco-it.exec</dataFile>
311+
<dataFile>${project.basedir}/target/jacoco-it.exec</dataFile>
322312
<outputDirectory>${sonar.jacoco.reports}/jacoco-it</outputDirectory>
323313
</configuration>
324314
</execution>

0 commit comments

Comments
 (0)