[
https://issues.apache.org/jira/browse/RAT-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Ottlinger closed RAT-307.
---------------------------------
Resolution: Fixed
As we build on ASF and GithubAction it should be okay to not build with
openjdk8 via Travis.
> Travis build failures
> ---------------------
>
> Key: RAT-307
> URL: https://issues.apache.org/jira/browse/RAT-307
> Project: Apache Rat
> Issue Type: Bug
> Reporter: Philipp Ottlinger
> Assignee: Philipp Ottlinger
> Priority: Major
> Fix For: 0.15
>
>
> 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
> {code}
> 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.
> {code}
> A plain update to focal fails as JDK8 is not handled correctly:
> https://app.travis-ci.com/github/apache/creadur-rat/jobs/574777057
> {code}
> $ 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 .
> {code}
> Thus: remove openJDK8 on Travis.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)