Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

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

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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

 

Avatar

Community Advisor

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

Avatar

Administrator

@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