Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Currently Travis builds are failing irregularly due to problems with the JDK/build setup on Travis.
On feature branches (dependabot updates) the build fails with:
https://app.travis-ci.com/github/apache/creadur-rat/jobs/572306063
0.01s$ java -Xmx32m -version java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode) $ javac -J-Xmx32m -version javac 1.8.0_151 3.02s$ mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE The command "eval mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V " failed. Retrying, 2 of 3.
A plain update to focal fails as JDK8 is not handled correctly:
https://app.travis-ci.com/github/apache/creadur-rat/jobs/574777057
$ export JAVA_HOME=~/openjdk8 $ export PATH="$JAVA_HOME/bin:$PATH" $ ~/bin/install-jdk.sh --target "/home/travis/openjdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "GPL" --cacerts Ignoring license option: GPL -- using GPLv2+CE by default install-jdk.sh 2020-06-02 Expected feature release number in range of 9 to 20, but got: 8 The command "~/bin/install-jdk.sh --target "/home/travis/openjdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "GPL" --cacerts" failed and exited with 3 during .
Thus: remove openJDK8 on Travis.