Try d...@maven.apache.org
On Tue, 22 Nov 2022 at 16:23, Patrick Plenefisch <simonp...@gmail.com> wrote: > Hi, > How can I query a specific dependency's *resolved* transitive dependencies > inside a class executed by a mojo? I have access to session and project, > and that's it. > I looked at DependencyGraphBuilder and the underlying > ProjectDependenciesResolver, but those seem to be injected. While I can > generate a class at runtime, I don't see how to access the injector even if > I have a class > > The environment I'm running inside is JRuby inside > > https://github.com/takari/polyglot-maven/blob/master/polyglot-maven-plugin/src/main/java/org/sonatype/maven/polyglot/plugin/ExecuteMojo.java > which is why I can't just use an @Inject annotation. But, being JRuby, I > can easily generate classes at runtime if necessary. > > How can I go about this? > > Thanks, > > Patrick >