update pom

This commit is contained in:
Xin Wang
2019-04-06 17:49:03 +08:00
parent 68ebb3a957
commit 2b8120b6ed
2 changed files with 36 additions and 9 deletions

43
pom.xml
View File

@@ -100,7 +100,8 @@
<java_target_version>1.7</java_target_version>
<file_encoding>UTF-8</file_encoding>
<spring_version>3.2.18.RELEASE</spring_version>
<maven_jacoco_version>0.8.3</maven_jacoco_version>
<maven-jacoco-plugin.version>0.8.3</maven-jacoco-plugin.version>
<maven-surefire.version>2.22.1</maven-surefire.version>
</properties>
<modules>
@@ -368,17 +369,43 @@
</additionalConfig>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${maven-jacoco-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>
${project.build.directory}/coverage-reports/jacoco.exec
</destFile>
<propertyName>jacocoArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
<outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.5</version>
<version>${maven-surefire.version}</version>
<configuration>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>**/*NoRunTest.java</exclude>
</excludes>
<useSystemClassLoader>true</useSystemClassLoader>
<forkMode>once</forkMode>
<argLine>${jacocoArgLine}</argLine>
</configuration>
</plugin>
<!-- javadoc -->