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

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

  • September 28, 2023
  • 3 replies
  • 2417 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

A_H_M_Imrul
Community Advisor
A_H_M_ImrulCommunity AdvisorAccepted solution
Community Advisor
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..

 

Jagadeesh_Prakash
Community Advisor
Community Advisor
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>

kautuk_sahni
Community Manager
Community Manager
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