Skip to content

Verify the plugin on Maven 3.9.0 - #740

Merged
slachiewicz merged 2 commits into
masterfrom
agent/verify-maven-3.9.0
Sep 20, 2026
Merged

slachiewicz merged 2 commits into
masterfrom
agent/verify-maven-3.9.0

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Sep 20, 2026

Copy link
Copy Markdown
Member

Adds one matrix entry (ubuntu, JDK 8, Maven 3.9.0) to the shared verify workflow so the full build and ITs also run on the oldest Maven the ASF parent allows for building (minimalMavenBuildVersion 3.9). The regular matrix runs current Maven only, so API drift against older releases goes unnoticed until a user hit it. Uses the shared workflow's matrix-include input; no new job definition. Same change as apache/maven-dependency-plugin#1701.

First finding of the new job: auxclasspath-with-java-runtime-11 compiles Java 11 sources with maven.compiler.release and nothing switches the JDK, so on a JDK 8 runtime it only passed because Maven 3.10 default-binds compiler-plugin 3.15.0, which tolerates --release on javac 8; Maven 3.9.0 binds 3.10.1 and fails with invalid flag: --release. The IT now declares invoker.java.version = 11+, as its siblings do, so it runs where it can compile what it tests.

@slachiewicz slachiewicz added the build Pull requests that change the build process label Sep 20, 2026
The verify matrix runs current Maven only. One extra matrix entry runs the
full build and ITs on Maven 3.9.0, the floor the ASF parent enforces, so
API drift against the older 3.9 line is caught before a user hits it.
The project compiles Java 11 sources with maven.compiler.release and
nothing switches the JDK; on JDK 8 it only passed because Maven 3.10 binds
a compiler plugin that tolerates --release there. Maven 3.9.0 binds 3.10.1,
which fails with "invalid flag: --release".
@slachiewicz
slachiewicz force-pushed the agent/verify-maven-3.9.0 branch from 71e14a1 to d55109e Compare September 20, 2026 11:06
@slachiewicz
slachiewicz marked this pull request as ready for review September 20, 2026 11:23
@slachiewicz
slachiewicz merged commit a576f53 into master Sep 20, 2026
21 of 22 checks passed
@slachiewicz
slachiewicz deleted the agent/verify-maven-3.9.0 branch September 20, 2026 11:24
@github-actions github-actions Bot added this to the 3.29.0 milestone Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull requests that change the build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant