maven - IntelliJ Project Structure full of "... and modules" and duplicates -
i have following folder structure: main - server -- server-module-1 --- --- b --- c -- server-module-2 --- d --- e --- f - client -- modules --- client-module-1 --- client-module-2 --- client-module-3 - war-module maven structure similar - main pom.xml: <modules> <module>server</module> <module>client</module> <module>war-module</module> </modules> the problem begins if move 1 module separate profile since don't need war-module (on jenkins). <modules> <module>server</module> <module>client</module> </modules> <profiles> <profile> <id>createmodule</id> <modules> <module>war-module</module> </modules> </profile> </profiles> after change, intellij project structure looks this: main , modules - client , modules -- client-modules , modules --- client-module-1 --- ...