Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ARCHETYPE-655] Get rid of Wagon API to download catalogs #215

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

slawekjaranowski
Copy link
Member

@slawekjaranowski
Copy link
Member Author

@cstamas can you look?


if (session != null && id != null) {
MavenExecutionRequest request = session.getRequest();
MetadataRequest request = new MetadataRequest();
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@cstamas cstamas left a comment

Choose a reason for hiding this comment

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

Looks good, but I'd not use metadata op to resolve catalog, as catalog is really not part of Resolver "layout" (and Resolver is oblivious about it). Here we deal with a resource "that happens" that is somewhere in remote repo (root), so I'd use same approach as in Maven4 Transporter implementation: direct use of Transport resolver interface.

@cstamas
Copy link
Member

cstamas commented Sep 18, 2024

Don't get me wrong, I am not -1 on this PR, but anyone looking at the code will raise eyebrows when look into how is remote catalog fetched 😄

Copy link
Member

@cstamas cstamas left a comment

Choose a reason for hiding this comment

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

In fact, I am now contradicting myself: this PR is ok, and I myself was not aware of such use of Metadata, kudos. +1.

Leave it as is pls!

@slawekjaranowski slawekjaranowski merged commit 367a9fe into master Sep 18, 2024
31 checks passed
@slawekjaranowski slawekjaranowski deleted the ARCHETYPE-655 branch September 18, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants