From 383baa9849cc9f37297d9bd3c4c20b414a81dd26 Mon Sep 17 00:00:00 2001 From: Daniel Gerhardt <code@dgerhardt.net> Date: Fri, 16 Jan 2015 10:40:14 +0100 Subject: [PATCH] Update Maven test and coverage configuration Use JaCoCo instead of Cobertura and remove obsolete Sunfire excludes. --- pom.xml | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/pom.xml b/pom.xml index eac1f4580..9c0495d1f 100644 --- a/pom.xml +++ b/pom.xml @@ -389,29 +389,38 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sonar-maven-plugin</artifactId> - <version>2.4</version> + <version>2.5</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> - <version>2.17</version> - <configuration> - <excludes> - <exclude>**/Selenium*.java</exclude> - <exclude>**/HttpRestApiTest.java</exclude> - </excludes> - </configuration> + <version>2.18.1</version> </plugin> <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - <version>2.6</version> - <configuration> - <formats> - <format>xml</format> - <format>html</format> - </formats> - </configuration> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.7.2.201409121644</version> + <executions> + <execution> + <id>default-prepare-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + <configuration> + <destFile>${project.build.directory}/jacoco-ut.exec</destFile> + </configuration> + </execution> + <execution> + <id>default-report</id> + <phase>prepare-package</phase> + <goals> + <goal>report</goal> + </goals> + <configuration> + <dataFile>${project.build.directory}/jacoco-ut.exec</dataFile> + </configuration> + </execution> + </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> -- GitLab