summaryrefslogtreecommitdiffstats
path: root/feature-repo-parent
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2020-01-09 16:07:47 -0500
committerPatrick Brady <patrick.brady@att.com>2020-01-09 21:13:16 +0000
commit8dddd9cbae1dcdd93dba7e270d68fe62f44cf954 (patch)
tree1498c75cc5762f5eb3b861a9e92cf8862af1beb1 /feature-repo-parent
parent6607298d2e384e59d491f99786346eb111a07320 (diff)
pick from jacoco.xml
part 2: fix appc/parent pom files Change-Id: Id3811bef7738f6faf3e6313df0b396866dd88ba6 Issue-ID: APPC-1808 Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'feature-repo-parent')
-rw-r--r--feature-repo-parent/pom.xml27
1 files changed, 25 insertions, 2 deletions
diff --git a/feature-repo-parent/pom.xml b/feature-repo-parent/pom.xml
index a2b0ab4..966dc71 100644
--- a/feature-repo-parent/pom.xml
+++ b/feature-repo-parent/pom.xml
@@ -38,9 +38,10 @@ limitations under the License.
<properties>
<!-- SONAR -->
<sonar.language>java</sonar.language>
- <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
- <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
+ <sonar.coverage.jacoco.xmlReportPaths>
+ ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
+ </sonar.coverage.jacoco.xmlReportPaths>
<sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
<sonar.projectVersion>${project.version}</sonar.projectVersion>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
@@ -107,6 +108,28 @@ limitations under the License.
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
+ <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>