Polish travis-ci for jacoco
Project: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/commit/3e3988d6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/tree/3e3988d6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/diff/3e3988d6 Branch: refs/heads/ROCKETMQ-54 Commit: 3e3988d612ce128e560719230988fd06aaad3012 Parents: 02f8b14 Author: vongosling <[email protected]> Authored: Wed Jan 18 23:10:33 2017 +0800 Committer: vongosling <[email protected]> Committed: Wed Jan 18 23:10:33 2017 +0800 ---------------------------------------------------------------------- pom.xml | 48 ++++++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 18 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/3e3988d6/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index e9ab2ea..2966541 100644 --- a/pom.xml +++ b/pom.xml @@ -154,21 +154,16 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - <!--maven properties --> + <!-- Maven properties --> <maven.test.skip>false</maven.test.skip> <maven.javadoc.skip>true</maven.javadoc.skip> - <!-- compiler settings properties --> + <!-- Compiler settings properties --> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> - <!-- BEFORE SonarQube 4.4.0 - the destination file for the code coverage report has to be set to the same value - in the parent pom and in each module pom. Then JaCoCo will add up information in - the same report, so that, it will give the cross-module code coverage. --> + <!-- Overwritten by the test configuration,otherwise the JaCoCo agent cannot be attached.Details see http://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html --> + <argLine>-Xms512m -Xmx1024m</argLine> <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> - <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> - <sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath> - <sonar.jacoco.itReportPath>${project.basedir}/../target/jacoco-it.exec</sonar.jacoco.itReportPath> - <sonar.language>java</sonar.language> <!-- URL of the ASF SonarQube server --> <sonar.host.url>https://builds.apache.org/analysis</sonar.host.url> <!-- Exclude all generated code --> @@ -245,13 +240,22 @@ <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <configuration> - <argLine>-Xms512m -Xmx1024m</argLine> + <forkCount>1</forkCount> + <reuseForks>true</reuseForks> <includes> <include>**/*Test.java</include> </includes> </configuration> </plugin> <plugin> + <artifactId>maven-failsafe-plugin</artifactId> + <version>2.19.1</version> + <configuration> + <forkCount>1</forkCount> + <reuseForks>true</reuseForks> + </configuration> + </plugin> + <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.4</version> <configuration> @@ -341,30 +345,38 @@ <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.6.201602180812</version> - <configuration> - <append>true</append> - </configuration> + <version>0.7.8</version> <executions> <execution> - <id>agent-for-ut</id> + <id>default-prepare-agent</id> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> - <id>agent-for-it</id> + <id>default-prepare-agent-integration</id> <goals> <goal>prepare-agent-integration</goal> </goals> </execution> <execution> - <id>report</id> - <phase>prepare-package</phase> + <id>default-report</id> <goals> <goal>report</goal> </goals> </execution> + <execution> + <id>default-report-integration</id> + <goals> + <goal>report-integration</goal> + </goals> + </execution> + <execution> + <id>default-check</id> + <goals> + <goal>check</goal> + </goals> + </execution> </executions> </plugin> <plugin>
