gnodet opened a new pull request, #12922: URL: https://github.com/apache/maven/pull/12922
## Summary Backport of #12633 to `maven-4.0.x`. - **Core**: When the running JDK's `javac` no longer supports the project's `--source`/`--release` level (per JEP 182 retirement schedule), emit a clear, actionable error telling the user which JDK version they need and how to fix it (run `mvnup`) - **mvnup**: `ToolchainPluginStrategy` detects old source levels and adds `maven-toolchains-plugin` with `select-jdk-toolchain` goal and version constraint (e.g. `<version>(,8]</version>`) - **IT**: Integration test using `mvn --up` (leveraging MNG-2520 delegation) ## Test plan - [x] Unit tests: `JdkSourceLevelSupportTest` (19 tests), `DefaultToolchainManagerTest` (17 tests), `ToolchainPluginStrategyTest` (20 tests) - [x] Integration test: `MavenITMvnupToolchainPluginStrategyTest` - [ ] CI green on `maven-4.0.x` 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
