From d44952b2fbe5e90956fce9498e36e506fcc60dc8 Mon Sep 17 00:00:00 2001 From: Thom Leggett Date: Thu, 15 Nov 2018 09:09:51 +0000 Subject: [PATCH] Upgraded java on circleci base images breaks surefire --- .circleci/config.yml | 3 +++ .circleci/fix-java-for-surefire.sh | 19 +++++++++++++++++++ images/build/pom.xml | 10 ++++++++++ integration-tests/pom.xml | 9 +++++++++ pom.xml | 9 +++++++++ 5 files changed, 50 insertions(+) create mode 100755 .circleci/fix-java-for-surefire.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 23fe9b7a..e8a142bf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,6 +17,9 @@ jobs: - run: name: Install fn binary (as it is needed for the integration tests) command: ./.circleci/install-fn.sh + - run: + name: Workaround for https://issues.apache.org/jira/browse/SUREFIRE-1588 + command: ./.circleci/fix-java-for-surefire.sh - run: name: Install junit-merge command: npm install -g junit-merge diff --git a/.circleci/fix-java-for-surefire.sh b/.circleci/fix-java-for-surefire.sh new file mode 100755 index 00000000..7daf6372 --- /dev/null +++ b/.circleci/fix-java-for-surefire.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -ex + +cat << 'EOF' > $HOME/.m2/settings.xml + + + + SUREFIRE-1588 + + true + + + -Djdk.net.URLClassPath.disableClassPathURLCheck=true + + + + +EOF diff --git a/images/build/pom.xml b/images/build/pom.xml index 2a2e01cc..21ad0c0b 100644 --- a/images/build/pom.xml +++ b/images/build/pom.xml @@ -11,6 +11,8 @@ 1.0.0-SNAPSHOT http://172.17.0.1:18080 + + 2.22.1 @@ -55,6 +57,14 @@ 1.8 + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.version} + + false + + org.apache.maven.plugins maven-deploy-plugin diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index 8eb7e9ad..5aa3be24 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -11,6 +11,7 @@ 1.0.0-SNAPSHOT 2.9.6 + 2.22.1 4.12 2.5 3.6.2 @@ -72,6 +73,14 @@ true + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.version} + + false + + diff --git a/pom.xml b/pom.xml index be1c5883..9d8257a6 100644 --- a/pom.xml +++ b/pom.xml @@ -31,6 +31,7 @@ 9.4.12.v20180830 0.8.1 + 2.22.1 4.12 2.21.0 3.10.0 @@ -208,6 +209,14 @@ + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.version} + + false + + org.jacoco jacoco-maven-plugin