Enable vid docker build jobs to use java-1.8
Overcome security features in java-1.8 that prevent
the forked java VM’s to use relative paths for loading the
classes. This fix was the simplest for arm64 docker build
jobs, and the least affecting the x86 build’s.
We need to modify all the definitions of surefire.
Change-Id: I0c10598c1c3a8765e1f1b509288a694b60df7389
Issue-ID: VID-366
Signed-off-by: Paul Vaduva <Paul.Vaduva@enea.com>
diff --git a/epsdk-app-onap/pom.xml b/epsdk-app-onap/pom.xml
index 85731d1..b46c0fe 100755
--- a/epsdk-app-onap/pom.xml
+++ b/epsdk-app-onap/pom.xml
@@ -143,6 +143,7 @@
<systemPropertyVariables>
<container.classpath>classpath:</container.classpath>
</systemPropertyVariables>
+ <useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
@@ -210,6 +211,9 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
+ <configuration>
+ <useSystemClassLoader>false</useSystemClassLoader>
+ </configuration>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
diff --git a/vid-app-common/pom.xml b/vid-app-common/pom.xml
index 658bf71..d687568 100755
--- a/vid-app-common/pom.xml
+++ b/vid-app-common/pom.xml
@@ -173,6 +173,7 @@
<systemPropertyVariables>
<container.classpath>classpath:</container.classpath>
</systemPropertyVariables>
+ <useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
diff --git a/vid-automation/pom.xml b/vid-automation/pom.xml
index 75d48a4..f8bd646 100644
--- a/vid-automation/pom.xml
+++ b/vid-automation/pom.xml
@@ -224,6 +224,7 @@
<argLine>
-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
</argLine>
+ <useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
</plugins>