我开始使用IntelliJ IDEA 13 Ultimate Edition,并且想知道它是否具有可搜索的表格视图,例如像Eclipse那样的项目的maven依赖关系。 例如,在Eclipse中,我可以通过转到其pom,然后单击依赖关系层次选项卡来检查项目的maven依赖关系。从那里,我可以搜索具体的依赖关系的存在,并能够查看所述依赖关系的POM。
I'm starting to use IntelliJ IDEA 13 Ultimate Edition and was wonder if it had a searchable tabular view of maven dependencies for a project like Eclipse does. For example, in Eclipse I can check my project's maven dependencies by going to its pom and then clicking on the "Dependencies Hierarchy" tab. From there, I can search for the existence of specific dependencies and have the ability to view the POMs of said dependencies.
我在IntelliJ中发现的所有内容是依赖关系的图表视图,当您有很多依赖关系时,可能会变得非常混乱,并不真正让我查看POM或搜索。
All I've found so far in IntelliJ is the diagram view of dependencies, which can get really cluttered when you have a lot of dependencies and doesn't really allow me to view POMs or search.
任何想法? p>
Any ideas?
推荐答案首先,您启用了maven插件,您可以通过 Maven Projects在IntelliJ中构建项目窗格(右上)?
Firstly, you have the maven plugin enabled, and you can build your project in IntelliJ via the Maven Projects pane (top right) ?
现在,您可以在线性列表中查看所有的maven依赖项项目窗格(左上),在您的源代码下面。您也可以键入搜索字符串(例如apache将突出显示您所有的 org.apache.xyz 依赖关系。
Now, you can see all your maven dependencies in a linear list in the Project pane (top left), underneath your source code. You can also type a search-string (e.g. "apache" will highlight all your org.apache.x.y.z dependencies.
对于依赖关系的结构视图,您可以从 Maven Projects 窗格中的其中一个maven模块开始,转到我的模块 - > 依赖关系并浏览树,您可以使用 f4
For a structural view of the dependencies, you can start with one of the maven modules in the Maven Projects pane. Go to My Module -> dependencies and browse the tree. You can go to the pom of any of the dependencies in this tree with f4.
从任何pom中,控制点击另一个artifactId将导航到该pom(如果可用)
From within any pom, control-clicking on another artifactId will navigate to that pom, if available.
我希望这有帮助!
更多推荐
IntelliJ可以显示可搜索的maven依赖关系,如Eclipse吗?
发布评论