workaround for problem in OSAM dependency
Change-Id: I6aa9db2712dbcc95688b248e2ddf8a3a2f04d04c
diff --git a/jjb/verify/osam.yaml b/jjb/verify/osam.yaml
index ffa1a02..9f9bf46 100644
--- a/jjb/verify/osam.yaml
+++ b/jjb/verify/osam.yaml
@@ -64,6 +64,15 @@
concurrent: true
builders:
+ # NOTE: this env var is only required to fix a bug in the "surefire" dependency:
+ # https://issues.apache.org/jira/browse/SUREFIRE-1588
+ # https://github.com/apache/maven-surefire/pull/197
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925
+ # should be removed as soon as this problem is resolved
+ - inject:
+ properties-content: |
+ _JAVA_OPTIONS=-Djdk.net.URLClassPath.disableClassPathURLCheck=true
+
- shell: |
#!/usr/bin/env bash
set -eux -o pipefail
@@ -90,11 +99,6 @@
- maven-target:
goals: "test"
pom: "pom.xml"
- # java-opts option is a workaround for:
- # Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
- # solutionfound here: https://stackoverflow.com/a/53085816
- java-opts:
- - "-Djdk.net.URLClassPath.disableClassPathURLCheck=true"
publishers:
- postbuildscript: