Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Embedded Maven 4.0.0-rc-6 hangs inside a Surefire forked JVM

Đang mở
#47 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

bug
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 four 4.0.0-rc-6 cells (ubuntu and windows, JDK 21 and 25); the 3.9.x and 3.10.0-rc-1 cells 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/maven-executor

Tất cả issue của apache/maven-executor

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.