Skip to content

Read the module descriptor of a multi-release output directory - #236

Merged
slachiewicz merged 2 commits into
masterfrom
agent/mr-output-directory
Sep 25, 2026
Merged

slachiewicz merged 2 commits into
masterfrom
agent/mr-output-directory

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

An output directory built with multiReleaseOutput has its module-info.class only under META-INF/versions/<N>, so a reactor sibling that has not been packaged yet was resolved as a filename-based automatic module and left on the classpath. Directories now get the same versioned lookup that multi-release jars already have. Like the jar lookup, it starts from the running JDK version, so a Java 8 runtime does not see versioned descriptors.

This is the plexus-java half of apache/maven-compiler-plugin#1137; the plugin still has to put META-INF/versions/<N> on --module-path with a --patch-module for the directory, because javac reads an exploded module only from its root.

@slachiewicz slachiewicz added the bug Something isn't working label Sep 25, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review September 25, 2026 22:39
@slachiewicz
slachiewicz merged commit 4566051 into master Sep 25, 2026
12 checks passed
@slachiewicz
slachiewicz deleted the agent/mr-output-directory branch September 25, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant