Whilst Maven 4 is targeting Java 17, I see the build doesn’t seem to work under Java 24:
[INFO] --- sisu:0.9.0.M3:main-index (index-project) @ maven-model-builder --- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Apache Maven 4.0.0-rc-4-SNAPSHOT: [INFO] [INFO] Apache Maven ....................................... SUCCESS [ 1.062 s] [INFO] Maven 4 API ........................................ SUCCESS [ 0.038 s] [INFO] Maven 4 API :: Meta annotations .................... SUCCESS [ 0.587 s] [INFO] Maven 4 API :: Dependency Injection ................ SUCCESS [ 0.274 s] [INFO] Maven 4 API :: XML ................................. SUCCESS [ 0.113 s] [INFO] Maven 4 API :: Model ............................... SUCCESS [ 1.013 s] [INFO] Maven 4 API :: Plugin .............................. SUCCESS [ 0.932 s] [INFO] Maven 4 API :: Settings ............................ SUCCESS [ 0.846 s] [INFO] Maven 4 API :: Toolchain ........................... SUCCESS [ 0.156 s] [INFO] Maven 4 API :: Repository Metadata ................. SUCCESS [ 0.125 s] [INFO] Maven 4 API :: Core ................................ SUCCESS [ 2.658 s] [INFO] Maven 4 API :: SPI ................................. SUCCESS [ 0.114 s] [INFO] Maven 4 API :: CLI ................................. SUCCESS [ 0.211 s] [INFO] Maven 4 Implementation Modules ..................... SUCCESS [ 0.020 s] [INFO] Maven 4 XML Implementation ......................... SUCCESS [ 1.064 s] [INFO] Maven 4 Model Support .............................. SUCCESS [ 0.541 s] [INFO] Maven 4 Dependency Injection ....................... SUCCESS [ 1.059 s] [INFO] Maven 4 API Implementation ......................... SUCCESS [ 12.464 s] [INFO] Maven 4 JLine integration .......................... SUCCESS [ 0.133 s] [INFO] Maven 4 Logging .................................... SUCCESS [ 0.869 s] [INFO] Maven Compatibility Modules ........................ SUCCESS [ 0.024 s] [INFO] Maven Artifact ..................................... SUCCESS [ 1.022 s] [INFO] Maven Model ........................................ SUCCESS [ 1.382 s] [INFO] Maven Builder Support (deprecated) ................. SUCCESS [ 0.725 s] [INFO] Maven Model Builder (deprecated) ................... FAILURE [ 1.037 s] [INFO] Maven 3 Plugin API ................................. SKIPPED [INFO] Maven Repository Metadata Model .................... SKIPPED [INFO] Maven Settings ..................................... SKIPPED [INFO] Maven Toolchain Model .............................. SKIPPED [INFO] Maven Toolchain Builder (deprecated) ............... SKIPPED [INFO] Maven 4 Core ....................................... SKIPPED [INFO] Maven Settings Builder (deprecated) ................ SKIPPED [INFO] Maven Artifact Resolver Provider (deprecated) ...... SKIPPED [INFO] Maven Compat (deprecated) .......................... SKIPPED [INFO] Maven 4 CLI ........................................ SKIPPED [INFO] Maven Embedder (deprecated) ........................ SKIPPED [INFO] Apache Maven Distribution .......................... SKIPPED [INFO] Maven 4 Executor ................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 31.536 s [INFO] Finished at: 2025-03-20T09:55:14+13:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.eclipse.sisu:sisu-maven-plugin:0.9.0.M3:main-index (index-project) on project maven-model-builder: Execution index-project of goal org.eclipse.sisu:sisu-maven-plugin:0.9.0.M3:main-index failed: Problem scanning file:/Users/amrk/IdeaProjects/upstream/maven/compat/maven-model-builder/target/classes/org/apache/maven/utils/Os.class: Problem scanning jrt:/java.base/java/lang/Deprecated.class: Unsupported class file major version 68 -> [Help 1] [ERROR] This is trying to build Guillaume Nodet’s mixin branch, which comes off 4.0.0-rc-4-SNAPSHOT. Mark -- "Great artists are extremely selfish and arrogant things" — Steven Wilson, Porcupine Tree