How to resolve or remove snapshot duplicate in reactor . can any one help ? | Community
Skip to main content
New Participant
September 28, 2023
Solved

How to resolve or remove snapshot duplicate in reactor . can any one help ?

  • September 28, 2023
  • 3 replies
  • 2403 views

[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]

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by A_H_M_Imrul

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..

 

3 replies

kautuk_sahni
Employee
October 4, 2023

@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.

Kautuk Sahni
Jagadeesh_Prakash
New Participant
September 28, 2023

@anilkumar9 

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>

A_H_M_Imrul
A_H_M_ImrulAccepted solution
New Participant
September 28, 2023

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..