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

Maybe introduce "nano maven"? #72

Open
cstamas opened this issue Dec 17, 2023 · 4 comments
Open

Maybe introduce "nano maven"? #72

cstamas opened this issue Dec 17, 2023 · 4 comments

Comments

@cstamas
Copy link
Member

cstamas commented Dec 17, 2023

Many times users does not need to install, deploy, whatever, all they need is to resolve a GAV transitively...

Requirements:

  • specify (or use default .m2/repository) local repository
  • by default have central, but allow multiple remote reposes
  • only HTTP transport ("apache" or "jdk" with resolver 2)
  • input is GAV, output is list of resolved artifacts

This would be teared down resolver, minified to barest minimum, just to perform this task.

@gnodet
Copy link
Contributor

gnodet commented Dec 18, 2023

However, I'm not sure the cost associated to trimming down (or modularising) the resolver will be worth the actual gain: i.e. I would think most of the code is about the collection / resolution rather than other use cases such as install / deploy.
Pax-url does not resolve transitively IIRC, so that could be a good use case to trim down, as we'd not need collection / resolution / POM reading, just access to the local repository and download. I would definitely support that, as I think this is the main use case that has drive people to bypass the resolver and re-implement that part.
As soon as we have transitive dependencies, we need much more and I don't think we'll be able to remove much from the resolver.

@maxandersen
Copy link
Contributor

@cstamas this is literally what jbang does :)

@maxandersen
Copy link
Contributor

just realized this is more about a nano library to allow one to programmatically do it - jbang is about the cli side ;) ignore me.

@cstamas
Copy link
Member Author

cstamas commented Jan 19, 2024

Yes, idea was a library that is "trimmed down" version of resolver (ie. just "resolve" APIs and related bits kept).

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

No branches or pull requests

3 participants