[ https://issues.apache.org/jira/browse/MCOMPILER-455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282457#comment-17282457 ]
Benjamin Marwell commented on MCOMPILER-455: -------------------------------------------- upstream issue > preparePaths does not take toolchain into account when parsing > module-info.class > -------------------------------------------------------------------------------- > > Key: MCOMPILER-455 > URL: https://issues.apache.org/jira/browse/MCOMPILER-455 > Project: Maven Compiler Plugin > Issue Type: Bug > Affects Versions: 3.8.1 > Reporter: Benjamin Marwell > Priority: Blocker > Labels: modularization, module, modules, toolchain, toolchains > > If you re-compile modules (e.g. via second execution of mvn compile), the > CompileMojo tries to read existing module descriptors. If you used toolchains > to compile those, this process will fail: > > {code:java} > Caused by: java.lang.module.InvalidModuleDescriptorException: Unsupported > major.minor version 59.0 > at jdk.internal.module.ModuleInfo.invalidModuleDescriptor > (ModuleInfo.java:1091) > at jdk.internal.module.ModuleInfo.doRead (ModuleInfo.java:195) > at jdk.internal.module.ModuleInfo.read (ModuleInfo.java:131) > at java.lang.module.ModuleDescriptor.read (ModuleDescriptor.java:2487) > at org.codehaus.plexus.languages.java.jpms.BinaryModuleInfoParser.parse > (BinaryModuleInfoParser.java:35) > at > org.codehaus.plexus.languages.java.jpms.AbstractBinaryModuleInfoParser.getModuleDescriptor > (AbstractBinaryModuleInfoParser.java:45) > at org.codehaus.plexus.languages.java.jpms.LocationManager.resolvePaths > (LocationManager.java:127) > at org.apache.maven.plugin.compiler.CompilerMojo.preparePaths > (CompilerMojo.java:238) > at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute > (AbstractCompilerMojo.java:792) > at org.apache.maven.plugin.compiler.CompilerMojo.execute > (CompilerMojo.java:187) > {code} > Test project: https://github.com/torakiki/testme > Reproduce: > * git clone https://github.com/torakiki/testme.git > * cd testme > * mvn compile > * mvn compile -- This message was sent by Atlassian Jira (v8.3.4#803005)