diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2020-06-10 15:17:03 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2020-06-10 15:17:03 +0800 |
commit | e272b13d2522009aece85d9df3d9bf72cb017287 (patch) | |
tree | a99278d67f043bb7f642d6e2a12aea3237482a38 | |
parent | 17378f0950d70f1e6d69cecdb5b96e5b923acbac (diff) |
SonarCloud Migration
Change-Id: I689cc23786abb2530397b445bb54b173e2c8df01
Issue-ID: HOLMES-313
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
-rw-r--r-- | pom.xml | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -61,6 +61,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> @@ -170,5 +175,32 @@ </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> |