Embedded Maven 4.0.0-rc-6 hangs inside a Surefire forked JVM
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- build-system, testing
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 5
- Fork
- 2
- Merge trung bình
- 4 giờ 22 phút
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/maven-executor
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
apache/maven-executor#46 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
apache/maven-executor#50 ·
-
enhancement priority:major
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
apache/maven-executor#49 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
apache/maven-executor#48 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
apache/maven-executor#45 ·
Tất cả issue của apache/maven-executor
Issue tương tự
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/flink-agents#1156 ·
-
[source-shopify] FAILED bulk operation without partialDataUrl is silently treated as successful Đang mởarea/connectors autoteam community connectors/source/shopify needs-triage team/use type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100