Find usages of classes from maven dependency

Hi,

Is there a way I can find usages of classes from a maven dependency? I could comment out a dependency and launch compiler, but I'd better do it from Find Usages dialog or similar. Alt+F7 on a dependency in External Libraries doesn't work unfortunatelly.

0

Hello.

Maybe main menu / Analyze / Analyze Dependencies can help.

Regards,
Alexander.

0

Sorry, I've realized that this is not that workflow, that was requested.

Instead, please open Project Structure dialog, select the library and try "Analyze This Dependency" action.

Regards,
Alexander.

0
Avatar
Permanently deleted user

Thanks, Alexader, but I am either do not know how to use the dependecy viewer or it shows something unrelated.

E.g. a dependecy has A.class and B.class, I want to find out where these classes are used in my code. This Analyze Dependecies action doesn't show anything related to the dependency library at all. I could search for each of the classes via Alt+F7, but I am looking for some bulky action.

Please refer to the screenshot.

I would like to see in dependency viewer any mentions of StringUtils class which I used in my code. But it shows me something empty
dependency_analyze.png

0

Seems that you call the dialog from main menu. That was wrong, sorry.

1. Either use Project Structure dialog, like I described here: http://devnet.jetbrains.com/message/5526220#5526220

2. Or select a jar in the project tree, context menu / Analyze / Analyze Backward Dependencies.

Regards,
Alexander.

0
Avatar
Permanently deleted user

>>Or select a jar in the project tree, context menu / Analyze / Analyze Backward Dependencies.

That is exactly how I get that dialog, but I have selected Analyze Dependencies. "Analyze Backward Dependencies" gives me just empty dependency viewer.

Can you share a screenshot with what you have in this case? I have attached the project on the screenshot (just a pom.xml and class).



Attachment(s):
maven_proj.zip
0
Avatar
Permanently deleted user

Ok, I see that this is not working in my paid 12.1.4, but it works in 13.1.*. Sad...

0

请先登录再写评论。