Skip to content

Depend on maven-core instead of maven-compat in 18 core IT plugins - #13351

Merged
slachiewicz merged 2 commits into
masterfrom
agent/its-drop-unused-maven-compat
Oct 5, 2026
Merged

slachiewicz merged 2 commits into
masterfrom
agent/its-drop-unused-maven-compat

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Part of #8177. These 18 IT plugins use no maven-compat class; they only needed MavenProject, which reached them transitively through maven-compat. Each now declares maven-core (provided) instead, and the fork plugin drops the exclusions that only applied to maven-compat's dependencies. The 11 IT modules that do use compat classes are unchanged.

Verified: mvn -Prun-its -pl <the 18 modules> -am verify -DskipTests → all compile; with the declaration removed instead of replaced, all 18 fail on MavenProject.


To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
check one of the following:

Part of #8177. These modules use no maven-compat class; they reached
MavenProject in maven-core only transitively through it.
@slachiewicz
slachiewicz marked this pull request as ready for review October 5, 2026 19:50

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean mechanical change — all 18 IT plugins correctly swap maven-compat → maven-core (provided scope retained). The maven-it-plugin-fork additionally drops two maven-compat-specific exclusions (plexus-utils, plexus-container-default) that don't apply to maven-core. No code logic changes; MavenProject is available transitively through maven-core. PR body confirms compile verification. Solid.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@slachiewicz
slachiewicz merged commit 22451c0 into master Oct 5, 2026
22 checks passed
@slachiewicz
slachiewicz deleted the agent/its-drop-unused-maven-compat branch October 5, 2026 22:13
@github-actions github-actions Bot added this to the 4.1.0 milestone Oct 5, 2026
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.

3 participants