From 090eb470c8a16e60524acff8e3fe9810683c897d Mon Sep 17 00:00:00 2001
From: x-Clusse <claude.lusseau@kereval.com>
Date: Thu, 1 Feb 2024 11:31:35 +0100
Subject: [PATCH] Update Pom Jacoco Sonar

---
 http-validator-client/pom.xml  |  4 ++--
 matchbox-client/pom.xml        |  4 ++--
 pixm-connector-service/pom.xml |  4 ++--
 pom.xml                        | 44 +++++++++++++++++++++++++++++++++-
 4 files changed, 49 insertions(+), 7 deletions(-)

diff --git a/http-validator-client/pom.xml b/http-validator-client/pom.xml
index 092b5d1..0487fce 100644
--- a/http-validator-client/pom.xml
+++ b/http-validator-client/pom.xml
@@ -6,12 +6,12 @@
     <parent>
         <groupId>net.ihe.gazelle</groupId>
         <artifactId>pixm-connector</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
+        <version>3.0.0-EHSBP-SNAPSHOT</version>
     </parent>
 
     <artifactId>http-validator-client</artifactId>
     <name>HTTP Validator Client</name>
-    <version>3.0.0-SNAPSHOT</version>
+    <version>3.0.0-EHSBP-SNAPSHOT</version>
 
     <properties>
         <maven.compiler.source>17</maven.compiler.source>
diff --git a/matchbox-client/pom.xml b/matchbox-client/pom.xml
index e59b5fd..f300f28 100644
--- a/matchbox-client/pom.xml
+++ b/matchbox-client/pom.xml
@@ -6,12 +6,12 @@
     <parent>
         <groupId>net.ihe.gazelle</groupId>
         <artifactId>pixm-connector</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
+        <version>3.0.0-EHSBP-SNAPSHOT</version>
     </parent>
 
     <artifactId>matchbox-client</artifactId>
     <name>Matchbox Client</name>
-    <version>3.0.0-SNAPSHOT</version>
+    <version>3.0.0-EHSBP-SNAPSHOT</version>
 
     <properties>
         <maven.compiler.source>17</maven.compiler.source>
diff --git a/pixm-connector-service/pom.xml b/pixm-connector-service/pom.xml
index 97ccc2d..ebec53d 100644
--- a/pixm-connector-service/pom.xml
+++ b/pixm-connector-service/pom.xml
@@ -6,12 +6,12 @@
     <parent>
         <groupId>net.ihe.gazelle</groupId>
         <artifactId>pixm-connector</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
+        <version>3.0.0-EHSBP-SNAPSHOT</version>
     </parent>
 
     <artifactId>pixm-connector-service</artifactId>
     <name>PIXm Connector Service</name>
-    <version>3.0.0-SNAPSHOT</version>
+    <version>3.0.0-EHSBP-SNAPSHOT</version>
     <packaging>war</packaging>
 
     <properties>
diff --git a/pom.xml b/pom.xml
index d93e252..05dcdd6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
         <module>matchbox-client</module>
         <module>http-validator-client</module>
     </modules>
-    <version>3.0.0-SNAPSHOT</version>
+    <version>3.0.0-EHSBP-SNAPSHOT</version>
     <name>Pixm Connector</name>
 
     <properties>
@@ -52,6 +52,8 @@
         <system.stubs.jupiter.version>2.1.5</system.stubs.jupiter.version>
         <jakarta.servlet.api.version>6.1.0-M1</jakarta.servlet.api.version>
         <jakarta.jakartaee.api.version>10.0.0</jakarta.jakartaee.api.version>
+        <jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version>
+        <maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
     </properties>
 
     <scm>
@@ -82,6 +84,46 @@
             <url>https://gazelle.ihe.net/nexus/content/repositories/releases</url>
         </repository>
     </distributionManagement>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
+                <version>${jacoco-maven-plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>pre-unit-test</id>
+                        <goals>
+                            <goal>prepare-agent</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>post-unit-test</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>report</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <version>${maven-surefire-plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>default-test</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>test</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+        </plugins>
+    </build>
+
     <profiles>
         <profile>
             <id>dev</id>
-- 
GitLab