erikanderson opened a new issue, #11578: URL: https://github.com/apache/maven/issues/11578
### Affected version 3.9.12 ### Bug description Introduced with 3.9.12, unable to run rewrite-maven-plugin with Coretto JDK 11 ``` [ERROR] Failed to execute goal org.openrewrite.maven:rewrite-maven-plugin:5.42.0:run (default-cli) on project maven-multiple-level-modules-parent: [ERROR] The plugin org.openrewrite.maven:rewrite-maven-plugin:5.42.0 has unmet prerequisites: [ERROR] Required Java version 21 is not met by current version: 11.0.28 ``` To reproduce 1. Clone https://github.com/andyglick/maven-multi-level-modules-project 2. Use [sdkman](https://sdkman.io/install/) to switch to Coretto JDK 11 - `sdk install java 11.0.28-amzn` 3. Run rewrite `mvn -U org.openrewrite.maven:rewrite-maven-plugin:5.42.0:run` Full output ``` ➜ maven-multi-level-modules-project git:(master) ✗ java --version openjdk 11.0.28 2025-07-15 LTS OpenJDK Runtime Environment Corretto-11.0.28.6.1 (build 11.0.28+6-LTS) OpenJDK 64-Bit Server VM Corretto-11.0.28.6.1 (build 11.0.28+6-LTS, mixed mode) ➜ maven-multi-level-modules-project git:(master) ✗ mvn --version Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1) Maven home: /opt/homebrew/Cellar/maven/3.9.12/libexec Java version: 11.0.28, vendor: Amazon.com Inc., runtime: /Users/erik/.sdkman/candidates/java/11.0.28-amzn Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "26.1", arch: "aarch64", family: "mac" ➜ maven-multi-level-modules-project git:(master) ✗ mvn -U org.openrewrite.maven:rewrite-maven-plugin:5.42.0:run [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] maven-multiple-level-modules-parent [pom] [INFO] maven-multiple-level-modules-sub-parent [pom] [INFO] maven-multiple-level-modules-first [jar] [INFO] maven-multiple-level-modules-second [jar] [INFO] [INFO] ---------< org.zrgs.maven:maven-multiple-level-modules-parent >--------- [INFO] Building maven-multiple-level-modules-parent 1.0.4-SNAPSHOT [1/4] [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for maven-multiple-level-modules-parent 1.0.4-SNAPSHOT: [INFO] [INFO] maven-multiple-level-modules-parent ................ FAILURE [ 0.024 s] [INFO] maven-multiple-level-modules-sub-parent ............ SKIPPED [INFO] maven-multiple-level-modules-first ................. SKIPPED [INFO] maven-multiple-level-modules-second ................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.168 s [INFO] Finished at: 2025-12-18T13:57:06-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.openrewrite.maven:rewrite-maven-plugin:5.42.0:run (default-cli) on project maven-multiple-level-modules-parent: [ERROR] The plugin org.openrewrite.maven:rewrite-maven-plugin:5.42.0 has unmet prerequisites: [ERROR] Required Java version 21 is not met by current version: 11.0.28 [ERROR] -> [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/PluginIncompatibleException ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
