Skip to content

Verify the build against Maven 4 as well - #1350

Closed
slachiewicz wants to merge 1 commit into
masterfrom
enable-maven4-build
Closed

Verify the build against Maven 4 as well#1350
slachiewicz wants to merge 1 commit into
masterfrom
enable-maven4-build

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The plugin is currently only verified against Maven 3. Adding maven4-enabled: true makes the shared verify workflow put the Maven 4 version into the build matrix alongside 3.10.0-rc-1, so regressions under Maven 4 show up here instead of downstream. The shared workflow adds the jdk: 8 / Maven 4 exclusion by itself, so nothing else has to change in the matrix.

The trailing comma in matrix-exclude has to go at the same time. Without maven4-enabled that value is echoed verbatim, so the invalid JSON went unnoticed; with the flag on, the shared workflow pipes it through jq to append its own exclusion, and jq rejects it:

$ echo "$matrix_exclude" | jq -c '. + [{"jdk":"8","maven":"4.0.0-rc-6"}]'
jq: parse error: Expected another array element at line 7, column 7

Verified locally with Maven 4.0.0-rc-6 on JDK 21: clean verify succeeds and all unit tests pass.

Set maven4-enabled so the shared verify workflow adds the Maven 4
version to the build matrix next to 3.10.0-rc-1. The jdk 8 / Maven 4
combination is excluded by the shared workflow itself.

Also drop the trailing comma from matrix-exclude: with maven4-enabled
the shared workflow pipes that value through jq to append its own
exclusion, and jq rejects the trailing comma.
@Bukama

Bukama commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Duplicate of #1323 But no strong opinion on what to keep. 1323 has some analytics on why it fails with (before rc6)

@slachiewicz
slachiewicz marked this pull request as draft August 5, 2026 22:09
@slachiewicz slachiewicz closed this Aug 7, 2026
@slachiewicz
slachiewicz deleted the enable-maven4-build branch August 7, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants