[英]How to show Maven multi-module project's nested-modules as top level modules in IntelliJ IDEA?
I am using IntelliJIDEA 14 and recently switched from Eclipse. 我正在使用IntelliJIDEA 14,最近刚从Eclipse切换到该版本。 In Eclipse we can import any of the nested modules as top level projects and I am trying to do the same in IntelliJ.
在Eclipse中,我们可以将任何嵌套模块导入为顶级项目,而我正在IntelliJ中尝试这样做。
I am trying to open a maven multi-module project and want to see the nested modules as top level modules in IntelliJ. 我正在尝试打开一个Maven多模块项目,并希望将嵌套模块视为IntelliJ中的顶级模块。
But when I Open/Import Root Maven module (pom package type) only the root module is being displayed as top level project and all the nested modules are being displayed under root module directory hierarchy. 但是,当我打开/导入Root Maven模块(pom软件包类型)时,只有根模块显示为顶级项目,而所有嵌套模块都显示在根模块目录层次结构下。
Why I need this is my maven project has 3 to 4 levels of hierarchy(Broadleaf application). 我为什么需要这个是我的Maven项目具有3到4个层次的层次结构(Broadleaf应用程序)。 Navigating through all these modules only from root directory is painful.
仅从根目录浏览所有这些模块是很痛苦的。
Is there a way to do it? 有办法吗?
Are you referring to the Maven Projects
view? 您是指
Maven Projects
视图吗? You can tweak it to discard hierarchy view by unselecting Group modules
. 您可以通过取消选择“
Group modules
来调整它以放弃层次结构视图。 Click on that little icon on the right to get the popup. 单击右侧的小图标以弹出窗口。
Edit: 编辑:
When referring to Projects
view, one can change the the facet to Packages
: 引用“
Projects
视图时,可以将构面更改为Packages
:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.