Skip to content

Fix CI: use Java 21 executor for maven orb - #476

Merged
lolo101 merged 1 commit into
renovate/javafrom
chunk/fix-circleci-java21-executor
Nov 21, 2026
Merged

lolo101 merged 1 commit into
renovate/javafrom
chunk/fix-circleci-java21-executor

Conversation

@circleci-app

@circleci-app circleci-app Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The circleci/maven@2.4.1 orb defaults to cimg/openjdk:17.0
  • pom.xml sets maven.compiler.target=21, which requires JDK 21 to compile
  • This mismatch caused job 1132 to fail with Fatal error compiling: error: invalid target release: 21
  • Fix: pass executor.tag: "21.0" to the maven/test job so the orb runs on cimg/openjdk:21.0

https://app.circleci.com/agents/gh/lolo101/chat/788f86bc-1569-4d4e-8edb-456ab58dd32a

The maven orb defaults to cimg/openjdk:17.0, but pom.xml sets
maven.compiler.target=21, causing "invalid target release: 21".
Pin the executor tag to 21.0 to match the project's Java requirement.

AI-Generated: true
@lolo101
lolo101 merged commit a6d4a1c into renovate/java Nov 21, 2026
2 of 3 checks passed
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 this pull request may close these issues.

1 participant