Skip to content

Build against Maven 3.9.16 and keep Maven 3.6.3 as the prerequisite - #1429

Merged
slachiewicz merged 1 commit into
masterfrom
agent/maven-3.9.16
Oct 10, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/maven-3.9.16

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The provided Maven API was still 3.6.3, which put maven-core and maven-compat 3.6.3, maven-shared-utils 3.2.1 and Guava 25.1 into the dependency graph: 17 of the open Dependabot alerts, eight of them critical, across all four modules. This moves mavenVersion to 3.9.16 and mavenResolverVersion from 1.4.1 to 1.9.27, the resolver of Maven 3.9.16.

The plugin's <prerequisites> becomes a literal 3.6.3 instead of ${mavenVersion}, and minimalMavenBuildVersion stays at 3.6.3, so the Maven versions the plugin runs on and builds with do not change.

Two consequences of the newer API:

  • Guava 33 no longer brings jsr305, so the five @Nonnull and @Nullable annotations in versions-common go; nothing checked them.
  • Maven 3.9 validates project models more strictly. The test POMs for set use an unresolved ${revision} on purpose, so ProjectMojoExtension builds test projects with minimal validation.

Verified: mvn clean install -Dinvoker.skip → all modules pass, 297 tests in the plugin, 0 Checkstyle violations. I have not run the ITs locally; CI runs them on Maven 3.10.0 and 4.0.0-rc-7. Nothing runs the plugin on Maven 3.6.3, so compatibility with the prerequisite rests on the code not calling API newer than 3.6.3, as before.

The provided Maven 3.6.3 API brought maven-core, maven-compat,
maven-shared-utils 3.2.1 and Guava 25 into the dependency graph, with
critical advisories. The plugin still requires only Maven 3.6.3.
@slachiewicz slachiewicz added the dependencies Pull requests that update a dependency file label Oct 10, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review October 10, 2026 20:43
@slachiewicz
slachiewicz merged commit 33ae93d into master Oct 10, 2026
16 checks passed
@slachiewicz
slachiewicz deleted the agent/maven-3.9.16 branch October 10, 2026 20:58
@github-actions github-actions Bot added this to the 2.22.1 milestone Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant