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

Aperta
#1,138 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
build-system

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Java
Stelle
264
Fork
196
Merge medio
2g 7h
PR unite (30g)
23

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/maven-compiler-plugin

Tutte le issue di apache/maven-compiler-plugin

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.