Reputation: 2120
I have a multimodule maven application with parent pom as follows:
<groupId>com.test</groupId>
<artifactId>uke-management</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>uke-management</name>
<packaging>pom</packaging>
<modules>
<module>application</module>
<module>user-management</module>
<module>security</module>
<module>workflow</module>
<module>commons</module>
<module>database</module>
<module>contract-management</module>
<module>file-management</module>
<module>communication-management</module>
</modules>
now in intelliJ's maven module view i can see all modules however communication-management
is displayed twice and i dont know why. From the structure of my application it seems like it shouldn't be visible as root but somehow is. Here is the communication-management
's pom:
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>uke-management</artifactId>
<groupId>com.test</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>communication-management</artifactId>
<properties>
<spring-boot-starter-mail>2.1.5.RELEASE</spring-boot-starter-mail>
</properties>
<build>
// some build plugins
</build>
<dependencies>
<!-- project dependencies -->
<dependency>
<groupId>com.test</groupId>
<artifactId>user-managment</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>1.2.0.Final</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
<version>${spring-boot-starter-mail}</version>
</dependency>
</dependencies>
and this is how i can see it in IntelliJ:
Why is communication-management
displayed twice and why is it displayed as root?
i have already tried reimporting, cleaning etc.
Upvotes: 2
Views: 1398
Reputation: 408
I removed .flattened-pom.xml from trouble module. It had another version than others somehow. And then IDEA removed duplicate module annotated as root at runtime.
Upvotes: 0
Reputation: 2120
Turns out it was some IntelliJ issue, restarting PC solved it. I dont think it's reporoducable. I tried to create some sample project but issue did not occur.
The old "have you tried turning it off and on again" worked for me.
Upvotes: 1