【发布时间】:2022-11-02 22:52:25
【问题描述】:
我运行一个 JHispter 应用程序的 a Docker image build command
./mvnw package -Pprod verify jib:build
这会产生一个错误:
Your project is using Java 17 but the base image is for Java 11, perhaps you should configure a Java 17-compatible base image using the '<from><image>' parameter, or set maven-compiler-plugin's '<target>' or '<release>' version to 11 or below in your build configuration
我找到a solution for Gradle。如何为 Maven 做同样的修复?
【问题讨论】: