IntelliJ可以显示可搜索的maven依赖关系,如Eclipse吗?

编程入门 行业动态 更新时间:2024-10-26 18:21:30
本文介绍了IntelliJ可以显示可搜索的maven依赖关系,如Eclipse吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我开始使用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吗?

本文发布于:2023-07-04 17:08:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1026852.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:关系   IntelliJ   maven   Eclipse

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!