Enable Maven 4 build - #3352
Conversation
|
Fails already at "Surefire Extensions API .............................................................................. FAILURE [ 3.564 s]" |
|
@ascheman is it the issue you worked on with apache/maven#11983 ? |
Yes, exactly, therefore its just a draft: It depends on a new Maven 4 RC with that change. |
|
Sorry, I see it was drafted by @Bukama, but had a similar draft on my mind and thought, I had already prepared it. As I cannot see the full error trace, I cannot say whether it is exactly the same issue. Nevertheless, Surefire ITs will hardly work with Maven 4 unless the mentioned CLI issue is resolved. |
|
Note: This PR is for checking build status for Maven 4.0.0 according to checklist https://cwiki.apache.org/confluence/display/MAVEN/Maven+4.0.0+GA+checklist |
|
With current 4.0.0 SNAPSHOT it still fails |
|
Hey @Bukama — looking at the latest CI matrix on this PR and pulling apart the failure patterns: JDK 11 cells (fast-fail, ~40s): all three OS × JDK 11 × matrix-exclude: '[
{ "jdk": "11", "maven": "4.0.0-rc-5" }
]'(Other plugin enablement PRs use the same pattern.) JDK 17 / 21 cells (late-fail, ~10–15min): all six fail with the same root cause: This is This won't go away with a workflow flip — it needs either a Happy to look into the verifier side and report back. I'll follow up once I have a concrete fix path or a clearer upstream owner. |
|
I force-pushed with a rebased commit on top of current master that addresses all three failure categories from the CI runs: 1. Matrix exclusion fixThe original exclude used 2. IT failures — force forked mode for Maven 4All integration tests failed because This is a short-term workaround. The long-term fix is to migrate from 3. CountdownCloseable race condition (bonus fix)
|
CI Analysis — Maven 4 IT FailuresAll Maven 3 cells pass ✅ across all OS/JDK combinations. The Maven 4 cells show ~56 failing ITs out of 751 (~92.5% pass rate). Analysis of the failures: Exit Code 2 Failures (20 tests)Affected: Root cause: A known bug in Maven 4.0.0-rc-5's Status: Already fixed in Maven's main branch (e6a9c4216b, 2026-05-19) and 4.0.x branch (8f7bdee4c4, 2026-05-20), but not yet released. Not fixable in surefire — the bug is in Maven's launcher script. Other Maven 4 Failures (~36 tests)Genuine Maven 4 behavioral differences:
These are separate Maven 4 compatibility issues that need follow-up investigation. Summary
The |
Local Verification with Maven 4.0.x SNAPSHOTBuilt Maven from the
All 20 exit-code-2 failures are resolved. These will pass automatically in CI once rc-6 ships — no surefire changes needed for this category. |
|
Rebased |
|
@Bukama thanks for the rebase — I looked at why all nine 1. The matrix exclude doesn't matchThe shared workflow expands the Maven 4 cell with the exact version string from matrix-exclude: '[
{ "jdk": "11", "maven": "4.0.0-rc-6" }
]'(Since the version string is hard-coded, this needs a touch-up whenever 2. The rebase dropped Guillaume's IT launcher workaroundThe jdk-17/21 legs fail with 437 IT errors ( I'd suggest re-rolling that workaround as a standalone PR against master so it can't get lost in the next rebase here — happy to prepare that. Long term the fix remains the migration from the deprecated On the positive side: the 20 exit-code-2 failures ( |
No description provided.