Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Pass the target release to plexus-java when resolving module descriptors

Open
#1,138 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
build-system

Research direction

Start in CompilerMojo and TestCompilerMojo, and trace how release and target are selected for --patch-module in #1137. Inspect the ResolvePathsRequest release setting from plexus-languages#237, then verify that both compiler paths pass release with target as fallback. Done means module descriptors are resolved for the configured execution version rather than the running JDK.

Written by the indexing model from the issue text.

Description

3.x enhancement
New feature, improvement proposal

When a module descriptor comes from META-INF/versions/<N> of a multi-release jar or output directory, plexus-java picks <N> from the JDK running Maven rather than from the execution's release/target. Maven 3.9 on JDK 8 compiling through a Java 9+ toolchain therefore never sees such descriptors, and a newer runtime can pick one above the configured release.

Once codehaus-plexus/plexus-languages#237 adds a release setting to ResolvePathsRequest, CompilerMojo and TestCompilerMojo should set it from release, falling back to target, the same version the plugin already uses to choose the directory for --patch-module (#1137).

Dominant language
Java
Stars
263
Forks
195
Avg merge
1d 4h
Merged PRs (30d)
16

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-compiler-plugin

All issues in apache/maven-compiler-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.