Closed
Description
When scanning existing files, org.codehaus.plexus.languages.java.jpms.LocationManager.resolvePaths
will take a scanning request containing a possible JavaHome location.
But the BinaryModuleInfoParser does not use this javaHome location,, resulting in:
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)
Downstream issue and how to reproduce in a single, repeated step (try mvn compile
twice):
https://issues.apache.org/jira/browse/MCOMPILER-455
Metadata
Metadata
Assignees
Labels
No labels