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
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
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
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