Skip to content

Do not depend on maven-resolver-supplier-mvn3 - #13266

Open
cstamas wants to merge 1 commit into
apache:maven-3.10.xfrom
cstamas:maven-3.10.x-carry-own-supplier
Open

cstamas wants to merge 1 commit into
apache:maven-3.10.xfrom
cstamas:maven-3.10.x-carry-own-supplier

Conversation

@cstamas

@cstamas cstamas commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Maven Resolver Provider "completes" the Maven Resolver, and it should not be other way around.

Changes:

This basically aligns Maven 3.10 with Maven 4, as latter also carries "own" suppliers.

Co-authored-by: Fridrich Strba fridrich.strba@bluewin.ch

Maven Resolver Provider "completes" the Maven Resolver, and it
should not be other way around.

Changes:
* drop completely maven-resolver-supplier-mvn3 from dependencies
* copy paste 3 classes to package o.a.m.r.supplier; basically maven-resolver-provider "defines" Resolver version
* drop all the legacy; reusing apache#13259
@cstamas

cstamas commented Sep 24, 2026

Copy link
Copy Markdown
Member Author

@fridrich ping

@cstamas
cstamas requested a review from gnodet September 24, 2026 17:27
@cstamas cstamas added the enhancement New feature or request label Sep 24, 2026
@cstamas
cstamas marked this pull request as ready for review September 24, 2026 17:47
@fridrich

Copy link
Copy Markdown
Contributor

@fridrich ping

I look at it and when I was analyzing what to bring back the Maven3ScopeManagerConfiguration.java was looking to me as a dead weight. Besides that, whatever makes this less circular, I am fine with it. Since this PR exists, I added to my original one also the follow-up commit, where I only brought back the maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenSessionBuilderSupplier.java from your referenced commit. All the other things, I left them as they were. But I did not really give it a huge analysis. Just that it built and passed all tests.

@rmannibucau rmannibucau 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.

FTR we should find a way to ignore getArtifactTypeRegistry but not worse than today

@cstamas

cstamas commented Sep 24, 2026

Copy link
Copy Markdown
Member Author

Yeah, we should align these...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants