Skip to content

Use maven4-build instead of hand-rolling the matrix - #576

Merged
slachiewicz merged 1 commit into
apache:masterfrom
slachiewicz:ci-use-maven4-build
Aug 4, 2026
Merged

Use maven4-build instead of hand-rolling the matrix#576
slachiewicz merged 1 commit into
apache:masterfrom
slachiewicz:ci-use-maven4-build

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The shared workflow already has a switch for a Maven-4-only build. Setting ff-maven and maven-matrix by hand does the same thing, but repeats the version twice, needs re-pinning in two places on every RC, and skips the {jdk: 8} exclude that maven4-build adds for you — harmless here only because jdk-matrix is pinned to 17 and 21.

-      ff-maven: "4.0.0-rc-6"                     # Maven version for fail-fast-build
-      maven-matrix: '[ "4.0.0-rc-6" ]'
+      maven4-build: true
+      maven4-version: '4.0.0-rc-6' # the same as used in project

Matches how the other Maven 4 plugins are configured — clean, install, deploy, compiler, source, archiver and filtering all use maven4-build. No behaviour change intended. Context in apache/maven#12676.

The shared workflow already has a switch for a Maven-4-only build. Setting
ff-maven and maven-matrix by hand does the same thing but repeats the
version twice, needs re-pinning in two places on every RC, and skips the
jdk-8 exclude that maven4-build adds for you — harmless only because
jdk-matrix is pinned to 17 and 21 here.

Matches the other Maven 4 plugins: clean, install, deploy, compiler,
source, archiver and filtering all use maven4-build.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@slachiewicz
slachiewicz merged commit d3dd449 into apache:master Aug 4, 2026
8 checks passed
@github-actions github-actions Bot added this to the 4.0.0-beta-2 milestone Aug 4, 2026
@slachiewicz
slachiewicz deleted the ci-use-maven4-build branch August 4, 2026 20:26
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.

1 participant