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

ResolvedArtifactDependency contains no dependencies #44659

Open
dmlloyd opened this issue Nov 22, 2024 · 1 comment
Open

ResolvedArtifactDependency contains no dependencies #44659

dmlloyd opened this issue Nov 22, 2024 · 1 comment

Comments

@dmlloyd
Copy link
Member

dmlloyd commented Nov 22, 2024

This might be a bug or might be a feature request, I'm not sure.

I'm developing a POC packaging type for a modular application, and in order to do so we have to perform some level of analysis on the dependency graph of the application. Specifically, we must use the dependency information of each artifact in order to connect up its modular dependencies. However, it seems that all instances of io.quarkus.maven.dependency.ResolvedDependency return an empty list for getDependencies(). It's not clear whether that information is lost during analysis, or if it is only available at an earlier phase, etc. But having the list be empty is unexpected.

@dmlloyd
Copy link
Member Author

dmlloyd commented Nov 22, 2024

I set a breakpoint on the only constructor of ResolvedArtifactDependency which can possibly set a non-empty list on the deps field, and every list that is set at that point is empty. I also set a breakpoint at io.quarkus.maven.dependency.ResolvedDependencyBuilder#addDependency and it is never used during a normal build of the getting-started quickstart.

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

No branches or pull requests

1 participant