summaryrefslogtreecommitdiffstats
path: root/activiti-extension
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2020-02-20 11:39:36 +0800
committerYan Yang <yangyanyj@chinamobile.com>2020-02-20 03:40:28 +0000
commitbc470293e272cfe9381f42b162eea7cfc9f90f23 (patch)
tree4d4eaa15b010eff89debf9e63ae8c1d869437cc2 /activiti-extension
parentc6cdaa3ca0eb0e220333e99dba2a3da7aa7f8172 (diff)
Fix error about coverage
Change-Id: Ib69dad0e7d9bbf3c1e30d96b42346a247c4b3525 Issue-ID: VFC-1619 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'activiti-extension')
-rw-r--r--activiti-extension/pom.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/activiti-extension/pom.xml b/activiti-extension/pom.xml
index 3eb0723..bea0c38 100644
--- a/activiti-extension/pom.xml
+++ b/activiti-extension/pom.xml
@@ -25,6 +25,11 @@
<ant.version>1.9.6</ant.version>
<apache-velocity.version>1.6.2</apache-velocity.version>
<jgrapht.version>0.9.1</jgrapht.version>
+ <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
+ <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>
</properties>
<repositories>
<repository>
@@ -185,6 +190,29 @@
</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>
<pluginManagement>
<plugins>