Explorar el Código

Alter the classloader workaround, and leave link to SO page describing the problem

Shane Kilkelly hace 7 años
padre
commit
267d324870
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      services/git-bridge/pom.xml

+ 3 - 2
services/git-bridge/pom.xml

@@ -23,12 +23,13 @@
                     <compilerArgument></compilerArgument>
                 </configuration>
             </plugin>
-						<!-- Hack, test loader crashes without this bit -->
+						<!-- Workaround, test loader crashes without this configuration option -->
+						<!-- See: https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class -->
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
-                    <useSystemClassLoader>false</useSystemClassLoader>
+                  <argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
                 </configuration>
             </plugin>
             <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-assembly-plugin -->