[ERROR] Project 'com.aembootcamp:aem-bootcamp.ui.frontend:1.0.0-SNAPSHOT' is duplicated in the reactor @
[ERROR] Project 'com.aembootcamp:aem-bootcamp.ui.frontend:1.0.0-SNAPSHOT' is duplicated in the reactor -> [Help 1]
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @Anilkumar9,
The reason of this error possibly is the following structure of your codebase
+-- root-project-A `-- pom.xml +-- module-A | `-- pom.xml +-- module-B | `-- pom.xml +-- root-project-B `-- pom.xml +-- module-C `-- pom.xml
It should be the following:
|-- root-project-A
`-- pom.xml
<modules>
<module>module-A</module>
<module>module-B</module>
<module>root-project-B</module> <!-- Error: project A reference project B -->
<module>root-project-B/module-C</module> <!-- Error: project A reference project B -->
</modules>
|-- root-project-B
`-- pom.xml
<modules>
<module>module-C</module>
</modules>
let me know if that makes sense..
Hello @Anilkumar9,
The reason of this error possibly is the following structure of your codebase
+-- root-project-A `-- pom.xml +-- module-A | `-- pom.xml +-- module-B | `-- pom.xml +-- root-project-B `-- pom.xml +-- module-C `-- pom.xml
It should be the following:
|-- root-project-A
`-- pom.xml
<modules>
<module>module-A</module>
<module>module-B</module>
<module>root-project-B</module> <!-- Error: project A reference project B -->
<module>root-project-B/module-C</module> <!-- Error: project A reference project B -->
</modules>
|-- root-project-B
`-- pom.xml
<modules>
<module>module-C</module>
</modules>
let me know if that makes sense..
The error message you're encountering, "Project 'com.aembootcamp:aem-bootcamp.ui.frontend:1.0.0-SNAPSHOT' is duplicated in the reactor," typically occurs in a multi-module Maven project when there are duplicate references to the same project within the reactor build. This can happen if a module is listed multiple times in the <modules> section of your parent pom.xml file or if there are cyclic dependencies between modules.
Check <modules> in Parent POM
Ensure that the <modules> section lists each module only once. Remove any duplicate entries. It should look something like this
<modules>
<module>module1</module>
<module>module2</module>
<!-- ... other modules ... -->
</modules>
@Anilkumar9 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes