From 2627b5be219b4bcc77da6108aa539e4c2f900720 Mon Sep 17 00:00:00 2001 From: Andrea Burattin <andrea.burattin@gmail.com> Date: Tue, 15 Mar 2022 23:23:45 +0100 Subject: [PATCH] Added maven profile for coverage --- pom.xml | 42 +++++++++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index e6322be..0e3abd5 100644 --- a/pom.xml +++ b/pom.xml @@ -91,12 +91,40 @@ <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</version> </plugin> - - <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.8.8-SNAPSHOT</version> - </plugin> </plugins> </build> -</project> + + <profiles> + <profile> + <id>coverage</id> + <build> + <plugins> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.7</version> + <executions> + <execution> + <id>prepare-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <execution> + <id>report</id> + <goals> + <goal>report</goal> + </goals> + <configuration> + <formats> + <format>XML</format> + </formats> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project> \ No newline at end of file -- GitLab