简体   繁体   中英

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

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?

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

在此处输入图片说明

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

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM