Repository: kylin Updated Branches: refs/heads/master e46d699e0 -> 68ff75de2
minor, enable jacoco plugin Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/68ff75de Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/68ff75de Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/68ff75de Branch: refs/heads/master Commit: 68ff75de260e6e93197103c0fd06009cf73c8e21 Parents: e46d699 Author: Billy Liu <billy...@apache.org> Authored: Mon Jan 9 00:29:57 2017 +0800 Committer: Billy Liu <billy...@apache.org> Committed: Mon Jan 9 00:29:57 2017 +0800 ---------------------------------------------------------------------- pom.xml | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/68ff75de/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 22681e8..d883eca 100644 --- a/pom.xml +++ b/pom.xml @@ -922,19 +922,7 @@ <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.7.201606060606</version> - <configuration> - <destFile>${sonar.jacoco.reportPath}</destFile> - <append>true</append> - </configuration> - <executions> - <execution> - <id>agent</id> - <goals> - <goal>prepare-agent</goal> - </goals> - </execution> - </executions> + <version>0.7.8</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -1079,6 +1067,35 @@ </plugin> <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <configuration> + <append>true</append> + <destFile> + ${sonar.jacoco.reportPath} + </destFile> + </configuration> + <executions> + <execution> + <id>pre-test</id> + <goals> + <goal>prepare-agent</goal> + </goals> + <configuration> + <propertyName>surefireArgLine</propertyName> + </configuration> + </execution> + <execution> + <id>post-test</id> + <phase>test</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> @@ -1101,11 +1118,9 @@ <value>file:${project.basedir}/../build/conf/kylin-tools-log4j.properties</value> </property> </systemProperties> - <argLine>-javaagent:${project.build.testOutputDirectory}/jamm.jar ${argLine}</argLine> + <argLine>-javaagent:${project.build.testOutputDirectory}/jamm.jar ${argLine} ${surefireArgLine}</argLine> </configuration> </plugin> - - </plugins> </build> </profile>