From c191600415343d45d676e45a01c2987b348c6ad1 Mon Sep 17 00:00:00 2001 From: Jonas Witschel Date: Wed, 16 Oct 2019 11:33:02 +0200 Subject: [PATCH 1/2] Fix building with OpenJDK 6 in Travis CI OpenJDK 6 is no longer supported in the default build environment of Travis CI, so downgrade to Ubuntu 14.04 LTS (Trusty Tahr). This version is EOL (like Java 6), but seems to be the only way to continue building with OpenJDK 6. Even with the downgraded build environment, a manual workaround is necessary since the usual "jdk" key does not work. --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 593f8e14..9a656f81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ +# openjdk-6-jdk is not available in more recent Ubuntu versions +dist: trusty language: java install: # Download dependencies with JDK 8 because Maven Central supports @@ -23,4 +25,10 @@ jdk: - oraclejdk9 - oraclejdk8 - openjdk7 - - openjdk6 + +# The jdk key does not work for openjdk6 in Travis CI any more, so +# we manually install openjdk-6-jdk and set JAVA_HOME appropriately +# (https://github.com/travis-ci/travis-ci/issues/9713) +matrix: + include: + - env: JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64 From 6a4fe4c8ccaa3f9234b8eec75deeaa42b5154568 Mon Sep 17 00:00:00 2001 From: Jonas Witschel Date: Tue, 8 Oct 2019 00:01:57 +0200 Subject: [PATCH 2/2] Update lib-parent to version 14 Building with Maven 3.6.2 currently fails with [ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.1:findbugs (findbugs) on project system-rules: Unable to parse configuration of mojo org.codehaus.mojo:findbugs-maven-plugin:3.0.1:findbugs for parameter pluginArtifacts: Cannot assign configuration entry 'pluginArtifacts' with value '${plugin.artifacts}' of type java.util.Collections.UnmodifiableRandomAccessList to property of type java.util.ArrayList -> [Help 1] This is resolved in FindBugs version 3.0.4 and newer, so update lib-parent to a version including this fix. Using lib-parent version >14 breaks the current CI setup due to requiring a more recent Maven version. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 09e4727a..58c2fe96 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.github.stefanbirkner lib-parent - 8 + 14 system-rules