gpt4 book ai didi

java - Maven 项目中 8u162-jdk 的拉取访问被拒绝

转载 作者:行者123 更新时间:2023-12-02 01:16:59 25 4
gpt4 key购买 nike

我的maven项目中有一个dockerfile,当我使用docker基础镜像8u162-jdk时,在Build中出现这个错误。

当我使用openjdk:8u131-jdk-alpine时,构建工作正常,但我需要将JDK版本更改为8u162

Step 1/15 : FROM 8u162-jdk

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:03 min
[INFO] Finished at: 2019-08-23T14:26:57Z
[INFO] Final Memory: 82M/420M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build (build-image) on project app-back: Exception caught: pull access denied for 8u162-jdk, repository does not exist or may require 'docker login' -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[Pipeline] error
[Pipeline] step
Recording test results
[Pipeline] }

如何解决这个问题?当我们想要 JDK 版本 8u162 时,使用什么正确的镜像?

最佳答案

尝试使用 8u222-jdk, 8u222, 8-jdk, 8 标签之一,请参阅 more

关于java - Maven 项目中 8u162-jdk 的拉取访问被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57654998/

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