Enable vid docker build jobs to use java-1.8 00/74800/1
authorPaul Vaduva <Paul.Vaduva@enea.com>
Tue, 18 Dec 2018 11:57:09 +0000 (12:57 +0100)
committerPaul Vaduva <Paul.Vaduva@enea.com>
Tue, 18 Dec 2018 11:57:09 +0000 (12:57 +0100)
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>
epsdk-app-onap/pom.xml
vid-app-common/pom.xml
vid-automation/pom.xml

index 85731d1..b46c0fe 100755 (executable)
                                        <systemPropertyVariables>\r
                                                <container.classpath>classpath:</container.classpath>\r
                                        </systemPropertyVariables>\r
+                                       <useSystemClassLoader>false</useSystemClassLoader>\r
                                </configuration>\r
                        </plugin>\r
 \r
                        <plugin>\r
                                <artifactId>maven-surefire-plugin</artifactId>\r
                                <version>2.17</version>\r
+                               <configuration>\r
+                                   <useSystemClassLoader>false</useSystemClassLoader>\r
+                               </configuration>\r
                        </plugin>\r
                        <plugin>\r
                                <groupId>org.sonarsource.scanner.maven</groupId>\r
index 658bf71..d687568 100755 (executable)
                                        <systemPropertyVariables>
                                                <container.classpath>classpath:</container.classpath>
                                        </systemPropertyVariables>
+                                       <useSystemClassLoader>false</useSystemClassLoader>
                                </configuration>
                        </plugin>
 
index 75d48a4..f8bd646 100644 (file)
                            <argLine>
                                -javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
                            </argLine>
+                           <useSystemClassLoader>false</useSystemClassLoader>
                        </configuration>
             </plugin>
         </plugins>