Bump jersey.version from 2.37 to 2.39 and fix surefire tests

Resolves JUnit 4 vs. 5 clash between inderict dependencies and surefire
and fixes "Tests run: 0" after jersey.version bump to > v2.37.

See: https://github.com/KorAP/Kustvakt/actions/runs/4206284167/jobs/7299562454#step:10:2690
See: https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit.html#manually-specifying-a-provider

Resolves #526 #527 #528

Change-Id: Ib714d7e6c24a490419eb30174e1a87f9a5b733eb
diff --git a/core/pom.xml b/core/pom.xml
index e1cb4a2..2fd807c 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -9,7 +9,7 @@
 		<java.version>11</java.version>
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 		<spring.version>5.3.25</spring.version>
-		<jersey.version>2.37</jersey.version>
+		<jersey.version>2.39</jersey.version>
 		<jetty.version>9.4.50.v20221201</jetty.version>
 		<hibernate.version>5.6.15.Final</hibernate.version>
 		<flyway.version>9.14.1</flyway.version>
diff --git a/full/pom.xml b/full/pom.xml
index 5b3e8ce..4a7addb 100644
--- a/full/pom.xml
+++ b/full/pom.xml
@@ -7,7 +7,7 @@
 	<properties>
 		<java.version>11</java.version>
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-		<jersey.version>2.37</jersey.version>
+		<jersey.version>2.39</jersey.version>
 		<hibernate.version>5.6.15.Final</hibernate.version>
 	</properties>
 	<profiles>
@@ -129,6 +129,13 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-surefire-plugin</artifactId>
 				<version>2.22.2</version>
+				<dependencies>
+                    <dependency>
+                        <groupId>org.apache.maven.surefire</groupId>
+                        <artifactId>surefire-junit47</artifactId>
+                        <version>2.22.2</version>
+                    </dependency>
+                </dependencies>
 				<configuration>
 					<reuseForks>true</reuseForks>
 					<forkCount>1</forkCount>
diff --git a/lite/pom.xml b/lite/pom.xml
index ecbe913..e2524b2 100644
--- a/lite/pom.xml
+++ b/lite/pom.xml
@@ -7,7 +7,7 @@
 	<properties>
 		<java.version>11</java.version>
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-		<jersey.version>2.37</jersey.version>
+		<jersey.version>2.39</jersey.version>
 	</properties>
 
 	<build>
@@ -68,6 +68,13 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-surefire-plugin</artifactId>
 				<version>2.22.2</version>
+				<dependencies>
+                    <dependency>
+                        <groupId>org.apache.maven.surefire</groupId>
+                        <artifactId>surefire-junit47</artifactId>
+                        <version>2.22.2</version>
+                    </dependency>
+                </dependencies>
 				<configuration>
 					<useSystemClassLoader>false</useSystemClassLoader>
 					<reuseForks>true</reuseForks>