Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

generateLibrariesJson doesn't respect dependency classifier/extension #44

Open
Galster-dev opened this issue Aug 20, 2023 · 5 comments
Open

Comments

@Galster-dev
Copy link

Exported dependency coords do not include classifiers and extensions. This leads to some bugs, e.g. server trying to download jar artifact for pom dependency (with PluginLoader implementation presented in README)

My personal workaround atm is exporting artifacts instead of dependencies, but you may not like it because of increased JSON file size.

@stephan-gh
Copy link
Member

Could we just filter out pom dependencies completely?

@Galster-dev
Copy link
Author

Some pom dependencies are meta packages containing a few jar artifacts

@Galster-dev
Copy link
Author

Galster-dev commented Aug 20, 2023

My actual issue happened with InvUi (pom available here). This dependency unfolds to inventory-access-{r1-r14} and invui-core which are jar artifacts and required at runtime.

@stephan-gh
Copy link
Member

How would you expect to handle these on the PluginLoader side? Does it provide the necessary functionality to parse & handle metadata packages?

@Galster-dev
Copy link
Author

Yes, DefaultArtifact has both constructors with classifiers/extension and can parse it from a single so called "coords" string (format available here)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants