Re: Maven search for a class or method on classpath - how?

2022-06-17 Thread Romain Manni-Bucau
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

Re: Maven search for a class or method on classpath - how?

2022-06-17 Thread Tamás Cservenák
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

Re: Maven search for a class or method on classpath - how?

2022-06-17 Thread Manfred Moser
This might not help .. but your IDE will allow you to do that.. On the command line you might have to do a dependency:tree or dependency:list and then dependency:list-classes ... Or you could fork the plugin to create a new goal that basically does the two in one go on the code level.. and

Maven search for a class or method on classpath - how?

2022-06-17 Thread Graham Leggett
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