Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run openapi-generator due to low JDK version in docker base image #243

Closed
ityuhui opened this issue Jun 1, 2023 · 2 comments · Fixed by #244
Closed

Unable to run openapi-generator due to low JDK version in docker base image #243

ityuhui opened this issue Jun 1, 2023 · 2 comments · Fixed by #244

Comments

@ityuhui
Copy link
Member

ityuhui commented Jun 1, 2023

The base image maven:3.8.2-jdk-8-slim can not run openapi-generator

FROM maven:3.8.2-jdk-8-slim

The error log is as follows:

Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.5.3/maven-release-plugin-2.5.3.jar (53 kB at 1.8 MB/s)
Error:  Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.3.0:enforce (enforce-maven) on project openapi-generator-project: 
Error:  Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion failed with message:
Error:  Detected JDK version 1.8.0-302 (JAVA_HOME=/usr/local/openjdk-8/jre) is not in the allowed range [1.11.0,).

We should upgrade JDK 11 or later.

Which version/tag of docker image do you prefer @brendandburns ?
https://hub.docker.com/_/maven/tags

@ityuhui
Copy link
Member Author

ityuhui commented Jun 1, 2023

After this is fixed in the gen repo, kubernetes-client/c#188 and kubernetes-client/c#190 should be rolled back.

@brendandburns
Copy link
Contributor

brendandburns commented Jun 1, 2023

@ityuhui let's move to 3.9.2-eclipse-temurin-11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants