You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Philippe De Neve (Jira)" <ji...@apache.org> on 2025/01/01 04:07:00 UTC

[jira] [Created] (MCOMPILER-606) Compilation fails when there's a module descriptor

Philippe De Neve created MCOMPILER-606:
------------------------------------------

             Summary: Compilation fails when there's a module descriptor
                 Key: MCOMPILER-606
                 URL: https://issues.apache.org/jira/browse/MCOMPILER-606
             Project: Maven Compiler Plugin
          Issue Type: Bug
    Affects Versions: 3.13.0
            Reporter: Philippe De Neve


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
./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)