Likely not helping through maven ecosystem but a quick solution can be to use bash:
CLASSNAME=ISearchThisClass && cd project/ && mvn dependency:copy-dependencies && for i in target/dependency/*.jar; do unzip -l $i | grep $CLASSNAME.class && echo $i; done side note: an alternative script not copying deps but using them in place in .m2 would work too, just requires some more typing ;) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> Le ven. 17 juin 2022 à 16:26, Tamás Cservenák <ta...@cservenak.net> a écrit : > Howdy, > > Maven Indexer [1] can help you here as it does index classes within JAR (if > configured so). It may be option to extend indexer-cli (or create new tool) > that would let you then: > a) index your project > b) perform queries against created index > > Will look into this as my time allows, but at the same time, PRs are > welcome :) > > [1] https://github.com/apache/maven-indexer > > Thanks > T > > On Fri, Jun 17, 2022 at 4:14 PM Graham Leggett <minf...@sharp.fm.invalid> > wrote: > > > Hi all, > > > > I find myself with a large project, not knowing which dependency(ies) is > > transitively providing a given class. > > > > Is there a plugin that will allow a search within a project like this? > > > > I can sort of do something with dependency:list-classes, but this is > > limited in that it will only list classes in one artefact at a time. I > want > > to find a class in all artefacts in a project. > > > > Regards, > > Graham > > — > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > > For additional commands, e-mail: dev-h...@maven.apache.org > > > > >