简体   繁体   中英

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. In Eclipse we can import any of the nested modules as top level projects and I am trying to do the same in IntelliJ.

I am trying to open a maven multi-module project and want to see the nested modules as top level modules in 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.

Why I need this is my maven project has 3 to 4 levels of hierarchy(Broadleaf application). 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? You can tweak it to discard hierarchy view by unselecting 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 :

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM