Embedded Maven 4.0.0-rc-6 hangs inside a Surefire forked JVM
维护者通常 5 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- java
- 领域
- build-system, testing
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Java
- 星标
- 5
- 派生
- 4
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/maven-executor 的其他 Issue
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
apache/maven-executor#20 ·
维护者通常 5 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
apache/maven-executor#19 · 1 条评论 ·
维护者通常 5 天内回复
-
documentation
难度 3/5 1-2 天 新手友好度 64/100
apache/maven-executor#18 ·
维护者通常 5 天内回复
-
bug
难度 5/5 一周以上 新手友好度 20/100
apache/maven-executor#16 · 1 条评论 ·
维护者通常 5 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
apache/maven-executor#1 · 1 条评论 ·
维护者通常 5 天内回复
查看 apache/maven-executor 的全部 Issue
相似的 Issue
-
NullPointerException when a `DeserializationProblemHandler` returns `null` for `byte[]` (single value unwrapped) and `char[]` elements可能已有人在做 @Marti2203 今天认领。 未关闭
难度 2/5 半天 新手友好度 88/100
FasterXML/jackson-databind#6300 ·
维护者通常 1 天内回复
-
content good first issue
难度 1/5 1 小时以内 新手友好度 95/100
cpinitiative/usaco-guide#6699 ·
维护者通常 1 天内回复
-
BC remittance upload: a claim MSP refused (S03) is saved with a blank status instead of refused (F)未关闭type: bug
难度 2/5 1-3 小时 新手友好度 88/100
carlos-emr/carlos#4933 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
apache/rocketmq-dashboard#6925 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Vakore/ZappierGames#147 ·