IntelliJ 可以显示像 Eclipse 这样的可搜索的 maven 依赖项吗? [英] Can IntelliJ display a searchable maven dependency like Eclipse?

查看:13
本文介绍了IntelliJ 可以显示像 Eclipse 这样的可搜索的 maven 依赖项吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用 IntelliJ IDEA 13 Ultimate Edition,我想知道它是否有一个像 Eclipse 这样的项目的 maven 依赖项的可搜索表格视图.例如,在 Eclipse 中,我可以通过转到它的 pom 然后单击Dependencies Hierarchy"选项卡来检查我的项目的 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.

有什么想法吗?

推荐答案

首先,您启用了 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) ?

现在,您可以在源代码下方的 Project 窗格(左上角)的 linear 列表中查看所有 maven 依赖项.您还可以键入搜索字符串(例如,apache"将突出显示您的所有 org.apache.x.y.z 依赖项.

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 模块之一开始.转到 My Module -> dependencies 并浏览树.您可以使用 f4 转到此树中任何依赖项的 pom.

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 中,按住 control 单击另一个 artifactId 将导航到该 pom(如果可用).

From within any pom, control-clicking on another artifactId will navigate to that pom, if available.

我希望这会有所帮助!

这篇关于IntelliJ 可以显示像 Eclipse 这样的可搜索的 maven 依赖项吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆