gpt4 book ai didi

maven - Travis CI 无法安装 openjdk11

转载 作者:行者123 更新时间:2023-12-02 07:26:21 25 4
gpt4 key购买 nike

我在 Travis CI 中安装 openjdk11 时遇到问题。

这是我遇到的错误

Installing openjdk11
$ export JAVA_HOME=~/openjdk11
$ export PATH="$JAVA_HOME/bin:$PATH"
$ ~/bin/install-jdk.sh --target "/home/travis/openjdk11" --workspace "/home/travis/.cache/install-jdk" --feature "11" --license "GPL" --cacerts
install-jdk.sh 2019-04-18
The command "~/bin/install-jdk.sh --target "/home/travis/openjdk11" --workspace "/home/travis/.cache/install-jdk" --feature "11" --license "GPL" --cacerts" failed and exited with 51 during .
Your build has been stopped.

.travis.yml 文件:

language: java
jdk: openjdk11
cache:
directories:
- "$HOME/.m2/repository"

最佳答案

要避免此问题,请在 .travis.yml 配置文件中尝试类似的操作:

language: java
dist: xenial
sudo: required

jdk:
- openjdk11

关于maven - Travis CI 无法安装 openjdk11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55878548/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com