[ https://issues.apache.org/jira/browse/MCOMPILER-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17951428#comment-17951428 ]
Philippe De Neve commented on MCOMPILER-606: -------------------------------------------- Seems to be fixed with maven-compiler-plugin v3.14.0. However, there is then a warning: {{JDK-8318913 workaround: patched module-info.class requires version from [23] to [23] on 1 JDK modules [java.base]}} Kinda strange module-info.class must be patched from 23 to the same. > Compilation fails when there's a module descriptor > -------------------------------------------------- > > Key: MCOMPILER-606 > URL: https://issues.apache.org/jira/browse/MCOMPILER-606 > Project: Maven Compiler Plugin (Moved to GitHub Issues) > Issue Type: Bug > Affects Versions: 3.13.0 > Reporter: Philippe De Neve > Priority: Major > > Note: applicable only when using maven 4 rc1 or rc2 and Java 23. > When a project has a module descriptor, the build fails because of an error > issued by the maven-compiler-plugin compile goal. Subsequent compile (without > clean) succeeds. > To reproduce: > git clone https://gitlab.com/philippedn/jptb.git > cd jptb > git checkout MCOMPILER-606 > ./mvnw compile > Output: > {{[ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile > (default-compile) on project jptb: Fatal error compiling: error: release > version 23 not supported -> [Help 1]}} -- This message was sent by Atlassian Jira (v8.20.10#820010)