How to find the usage of a jar imported by maven dependency?

Yeezh :

I have a Java project source code. It imported a jar library by maven dependency.I want to find where does this project used the method or class provided by the jar library. How can i do this?

Remove the jar and see the compiler error can do this,but it cant show all usages,compiling will stop when it found an error.Any other way?

xingbin :

As said in the comment, you can open the dependency to get the package name, for example:

enter image description here

then use the default short cut ctrl shift f and enter the package name for global search:

enter image description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=108318&siteId=1