[英]Intellij IDEA - how to find package usage in a project
I am looking at a project's maven pom file with a lot of dependencies and trying to find out if a particular dependency is used or not. 我正在查看具有很多依赖项的项目的maven pom文件,并试图找出是否使用了特定的依赖项。 Is there a way in Intellij IDEA to find all import statements that import any class from a particular package?
Intellij IDEA中是否可以找到从特定包中导入任何类的所有导入语句?
I'm working with IntelliJ IDEA 14 UE. 我正在使用IntelliJ IDEA 14 UE。
I am not aware of a way to do it directly in IntelliJ but you can always use the analyse
goal of the maven-dependency-plugin
. 我不知道直接在IntelliJ中执行此操作的方法,但是您始终可以使用
maven-dependency-plugin
的analyse
目标。
Here is a link to a nice example of the plugin. 这里是一个很好的插件示例的链接 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.