summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2020-06-10 16:18:03 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2020-06-10 16:18:03 +0800
commitaa96befb67370641ba50b745ce3408dedaee90c8 (patch)
tree7735ae6b21eb89511708349482ffde92f3b374d6
parent4e3afdcb5f97b22fc7d2d1141fa146d36dbcfec3 (diff)
SonarCloud Migration
Change-Id: I67118673cc6735c33fdf7d6c92926c42d98c9806 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 9005ad8..6738052 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,6 +44,11 @@
<lombok.version>1.16.8</lombok.version>
<jersey.version>2.22.2</jersey.version>
<slf4j.version>1.7.25</slf4j.version>
+
+ <jacoco.version>0.8.5</jacoco.version>
+ <sonar.coverage.jacoco.xmlReportPaths>
+ ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
+ </sonar.coverage.jacoco.xmlReportPaths>
</properties>
<dependencyManagement>
@@ -176,5 +181,33 @@
</dependency>
</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>