Fixing CORD app publisher

Change-Id: I69c109dec098cd02215c5059a3413b0e935eef45
diff --git a/jjb/maven.yaml b/jjb/maven.yaml
index 0d37e6b..00fa36f 100644
--- a/jjb/maven.yaml
+++ b/jjb/maven.yaml
@@ -9,10 +9,7 @@
       Created by {id} job-template from ci-management/jjb/maven.yaml
 
     node: 'ubuntu16.04-basebuild-1c-2g'
-    project-type: maven
-    maven:
-      root-pom: pom.xml
-      goals: 'clean install'
+    project-type: freestyle
 
     parameters:
       - string:
@@ -47,6 +44,19 @@
           choosing-strategy: 'gerrit'
           shallow-clone: 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
+      - maven-target:
+          pom: pom.xml
+          goals: 'clean install'
+
 
 - job-template:
     id: maven-test
@@ -87,6 +97,15 @@
     project-type: maven
     concurrent: true
 
-    maven:
-      root-pom: 'pom.xml'
-      goals: 'test'
+    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
+      - maven-target:
+          pom: pom.xml
+          goals: 'test'