Embedded Maven 4.0.0-rc-6 hangs inside a Surefire forked JVM
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- build-system, testing
Direzione di ricerca
Start with EmbeddedMavenExecutor and ExecutorHelper.forMavenInstallation(..., Mode.AUTO), then reproduce Maven 4.0.0-rc-6 inside a Surefire or Failsafe forked JVM. Capture a thread dump from the hang and compare the embedded path with Mode.FORKED and the passing Maven versions. Done means the embedded execution no longer hangs and the affected integration-test scenarios pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Affected version
1.0.0 with Maven 4.0.0-rc-6
Bug description
EmbeddedMavenExecutor never returns when it runs Maven 4.0.0-rc-6 inside a Surefire or Failsafe forked test JVM. The same code with Maven 3.9.16 and 3.10.0-rc-1 completes normally.
Observed on 2026-09-21 in three repositories that moved their integration tests from maven-verifier to maven-executor with ExecutorHelper.forMavenInstallation(mavenHome, Mode.AUTO) (no environment variables set, so AUTO selects embedded):
- apache/maven-remote-resources-plugin#303: the first IT,
ITBadDependencyPoms, starts at 10:15:37 and the job is cancelled at 10:44:27 with no further output (run 35587231620). The same happens on all four4.0.0-rc-6cells (ubuntu and windows, JDK 21 and 25); the3.9.xand3.10.0-rc-1cells pass. - apache/maven-ear-plugin#556 and apache/maven-apache-resources#131: the same four cells, cancelled the same way.
The last lines the embedded Maven 4 prints before the hang are the JLine native-access warnings from org.jline.nativ.JLineNativeLoader (A restricted method in java.lang.System has been called ... Use --enable-native-access=ALL-UNNAMED), then nothing.
maven-verifier 2.0.0-M1 never embedded Maven 4 (its Embedded3xLauncher fails on MavenCling and falls back to forking), so these suites were green on Maven 4 before only because they forked. The three PRs now use Mode.FORKED, which passes.
Not established: whether the hang is in MavenCling's terminal setup when there is no console (the JLine warning is the last output), or in the executor's stream handling for Maven 4. A thread dump from a hung run would answer it; I can add one if useful.
- Lingua principale
- Java
- Stelle
- 5
- Fork
- 2
- Merge medio
- 2g 5h
- PR unite (30g)
- 2
Preparare l'ambiente
Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/maven-executor
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
apache/maven-executor#46 ·
I maintainer di solito rispondono entro 3 giorni
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
apache/maven-executor#58 ·
I maintainer di solito rispondono entro 3 giorni
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
apache/maven-executor#50 ·
I maintainer di solito rispondono entro 3 giorni
-
enhancement priority:major
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
apache/maven-executor#49 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
apache/maven-executor#48 ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di apache/maven-executor
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
redhat-developer/intellij-quarkus#1626 ·
-
Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
wso2/product-integrator-mi#5061 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
quarkiverse/quarkus-roq#1277 ·
I maintainer di solito rispondono entro 1 giorno
-
Typos in page footerAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/logging-site#48 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/maven-surefire#3496 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno