summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2020-06-10 16:16:57 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2020-06-10 16:16:57 +0800
commit18a28b93a3c41df917865ee897bd0f51bed760d6 (patch)
tree1af7246db4b9338610392b28d003702633ac0533
parentf939633c87a0ae9e237e6581799d66dd72e3a150 (diff)
SonarCloud Migration
Change-Id: Ib5bef1db05ea10edc2be8f04c0f8241496bd7b2e Issue-ID: HOLMES-313 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
-rw-r--r--pom.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 258e9c1..8e3537a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -64,6 +64,11 @@
<linux64outputdir>target/assembly/${linux64id}</linux64outputdir>
<win64outputdir>target/assembly/${win64id}</win64outputdir>
<version.output>target/version</version.output>
+
+ <jacoco.version>0.8.5</jacoco.version>
+ <sonar.coverage.jacoco.xmlReportPaths>
+ ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
+ </sonar.coverage.jacoco.xmlReportPaths>
</properties>
<dependencyManagement>
<dependencies>
@@ -158,4 +163,32 @@
</dependencies>
</dependencyManagement>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco.version}</version>
+ <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>
</project>