Intellij Project Window and Maven Modules
Hi,
I'm curious if following issue is normal or a bug:
If I add a multimodule-maven project (which consists of a parent pom and two submodules) to my project, Intellij displays some duplicates in the project tree.
- it displays a project-directory called "<name of parent-module> and modules"
- inside this folder it display the three modules parent, submodule1 and submodule2
- inside the parent it displays the two submodules again!
So basically it looks like this:
<name of parent-module> and modules
|___ ParentModule
|___ Submodule1
|___ Submodule2
|___ Submodule1
|___ Submodule2
Is this a normal behaviour? Is it supposed to display the submodules like this? If it is, then why? It kind of messes up the clarity of the project window...
Please sign in to leave a comment.
Does it help if you delete .idea directory and reimport the project from Maven? When importing from Maven, do you have an option enabled to combine the modules into groups?
Hey, thanks, it did help removing it from the project, uncheck all the now ignored poms and then re-add it to the project without the option "Create module groups for multi-module maven projects".