Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Maven hierarchical project view

This feature probably may not even exist in IntelliJ but I will try my luck anyway.

One of the projects that I work on has a slightly tall hierarchical maven project strcuture. While I love the "Maven Projects" tab on the right hand side, the fact that it presents the list of projects in a flat list confuses me.

Is it possible to have a tree structure in the "Maven Projects" window? In my case the Maven projects have proper parent-child relationship. i.e, the child projects are folders under the parent project and have the correct names in their pom.

I use Intellij 11.1.3 (Ultimate) and Maven 3.0.3

like image 391
Kannan Ekanath Avatar asked Oct 01 '12 09:10

Kannan Ekanath


People also ask

How do I see the project structure in IntelliJ?

To change settings of a module that hosts the file you are currently editing, just press Alt+F1, 7 or open the View menu, select Select In and click Project Structure. IntelliJ IDEA will open the Project Structure dialog and jump to the required module.

How do I view Maven projects in IntelliJ?

The Maven tool window is enabled automatically when you open your Maven project. Use the Maven tool window to view the available Maven projects, download sources and Javadocs, and execute phases of the build lifecycle. The tool window displays nodes for each Maven project, with the Lifecycle, Plugins subnodes.

How do I view Maven dependencies in IntelliJ?

In the POM, right-click anywhere in the editor to open the context menu and select Maven | Show Dependencies. Alternatively, press Ctrl+Alt+Shift+U or Ctrl+Alt+U . In the diagram window, IntelliJ IDEA displays the sub project and all its dependencies including the transitive ones.

How do I change folder structure in IntelliJ?

From the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Modules. Select the necessary module and open the Sources tab. to the right of the necessary folder (folder path). Specify the path relative to the output folder root, and click OK.


1 Answers

Sure it is. Select Group Modules in the settings of Maven Projects window.

Group Modules

like image 181
Vic Avatar answered Sep 19 '22 10:09

Vic