OpenAPITools / OpenAPITools/openapi-generator
[BUG] Build on CircleCi failed: org/springframework/boot/maven/RepackageMojo Java Version mismatch
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
While building a PR (https://circleci.com/gh/OpenAPITools/openapi-generator/55942), i encountered this error message:
Caused by: java.lang.UnsupportedClassVersionError: org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I think also other builds are affected. Most likely a maven plugin was compiled with java 17, but the java version used in the build is 8.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CircleCI build and inspect the Java runtime and Maven plugin configuration used there. Reproduce the RepackageMojo class-version failure, then verify the build succeeds with compatible Java and plugin versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100