update jacoco lib

This commit is contained in:
Xin Wang
2019-04-07 18:23:53 +08:00
parent dfab98fce1
commit 5a2efbf9cb

47
pom.xml
View File

@@ -96,8 +96,8 @@
<maven.test.skip>true</maven.test.skip> <maven.test.skip>true</maven.test.skip>
<downloadSources>true</downloadSources> <downloadSources>true</downloadSources>
<!-- compiler settings properties --> <!-- compiler settings properties -->
<java_source_version>1.7</java_source_version> <java_source_version>1.8</java_source_version>
<java_target_version>1.7</java_target_version> <java_target_version>1.<8/java_target_version>
<file_encoding>UTF-8</file_encoding> <file_encoding>UTF-8</file_encoding>
<spring_version>3.2.18.RELEASE</spring_version> <spring_version>3.2.18.RELEASE</spring_version>
<maven-jacoco-plugin.version>0.8.3</maven-jacoco-plugin.version> <maven-jacoco-plugin.version>0.8.3</maven-jacoco-plugin.version>
@@ -370,15 +370,42 @@
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.jacoco</groupId>
<artifactId>cobertura-maven-plugin</artifactId> <artifactId>jacoco-maven-plugin</artifactId>
<version>2.7</version> <version>${maven-jacoco-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration> <configuration>
<formats> <destFile>
<format>html</format> ${project.build.directory}/coverage-reports/jacoco.exec
<format>xml</format> </destFile>
</formats> <propertyName>jacocoArgLine</propertyName>
<check /> </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>${maven-surefire.version}</version>
<configuration>
<useSystemClassLoader>true</useSystemClassLoader>
<forkMode>once</forkMode>
<argLine>${jacocoArgLine}</argLine>
</configuration> </configuration>
</plugin> </plugin>
<!-- javadoc --> <!-- javadoc -->