Package is duplicated in reactor error | Community
Skip to main content
AtulSingh
Level 2
March 17, 2021
Solved

Package is duplicated in reactor error

  • March 17, 2021
  • 3 replies
  • 7127 views
Hi !
I am trying to build & deploy a project to AEM using Maven and when I run install command
mvn clean install -PautoInstallSinglePackage
I get below error:
Project 'com.adobe.aem.guides.wknd:aem-guides-wknd.ui.frontend:0.0.1-SNAPSHOT' is duplicated in the reactor

 

I tried changing groupId, artifactId & version but still same error.
Any idea how can I resolve this ?
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 arunpatidar

Hi,

I downloaded the project fromhttps://github.com/adobe/aem-guides-wknd and ran the 

mvn clean install -PautoInstallSinglePackage

I did not see this error 

I execute this command from the project root folder multiple times, did not see error any of the time.

 

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary for WKND Sites Project - Reactor Project 0.2.1-SNAPSHOT:

[INFO]

[INFO] WKND Sites Project - Reactor Project ............... SUCCESS [  1.645 s]

[INFO] WKND Sites Project - Core .......................... SUCCESS [ 16.750 s]

[INFO] WKND Sites Project - UI Frontend ................... SUCCESS [ 46.513 s]

[INFO] WKND Sites Project - UI apps structure ............. SUCCESS [  1.514 s]

[INFO] WKND Sites Project - UI apps ....................... SUCCESS [  6.073 s]

[INFO] WKND Sites Project - UI content .................... SUCCESS [  2.549 s]

[INFO] WKND Sites Project - UI config ..................... SUCCESS [  0.251 s]

[INFO] WKND Sites Project - UI sample content ............. SUCCESS [  6.528 s]

[INFO] WKND Sites Project - All ........................... SUCCESS [  7.751 s]

[INFO] WKND Sites Project - Integration Tests ............. SUCCESS [ 29.973 s]

[INFO] WKND Sites Project - Dispatcher .................... SUCCESS [  0.403 s]

[INFO] WKND Sites Project - UI Tests ...................... SUCCESS [  1.553 s]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  02:12 min

[INFO] Finished at: 2021-03-18T13:52:26+01:00

[INFO] ------------------------------------------------------------------------

3 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 18, 2021

Hi,

I downloaded the project fromhttps://github.com/adobe/aem-guides-wknd and ran the 

mvn clean install -PautoInstallSinglePackage

I did not see this error 

I execute this command from the project root folder multiple times, did not see error any of the time.

 

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary for WKND Sites Project - Reactor Project 0.2.1-SNAPSHOT:

[INFO]

[INFO] WKND Sites Project - Reactor Project ............... SUCCESS [  1.645 s]

[INFO] WKND Sites Project - Core .......................... SUCCESS [ 16.750 s]

[INFO] WKND Sites Project - UI Frontend ................... SUCCESS [ 46.513 s]

[INFO] WKND Sites Project - UI apps structure ............. SUCCESS [  1.514 s]

[INFO] WKND Sites Project - UI apps ....................... SUCCESS [  6.073 s]

[INFO] WKND Sites Project - UI content .................... SUCCESS [  2.549 s]

[INFO] WKND Sites Project - UI config ..................... SUCCESS [  0.251 s]

[INFO] WKND Sites Project - UI sample content ............. SUCCESS [  6.528 s]

[INFO] WKND Sites Project - All ........................... SUCCESS [  7.751 s]

[INFO] WKND Sites Project - Integration Tests ............. SUCCESS [ 29.973 s]

[INFO] WKND Sites Project - Dispatcher .................... SUCCESS [  0.403 s]

[INFO] WKND Sites Project - UI Tests ...................... SUCCESS [  1.553 s]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  02:12 min

[INFO] Finished at: 2021-03-18T13:52:26+01:00

[INFO] ------------------------------------------------------------------------

Arun Patidar
AtulSingh
AtulSinghAuthor
Level 2
March 18, 2021

I was actually using below command to create the project:
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -B -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=25 -DappTitle="WKND Sites Project" -DappId="wknd" -DgroupId="com.adobe.aem.guides.wknd" -DartifactId="aem-guides-wknd" -Dversion="0.0.1-SNAPSHOT" -DaemVersion="cloud"

 

But seems like there is difference in the project downloaded automatically vs Git project link. When we generate project, not all the modules of project gets created hence pop.xml mis-matches.

 

Thanks.

Nikhil-Kumar
Community Advisor
Community Advisor
March 18, 2021

@atulsingh -  Can you try doing mvn clean alone once ?


Thanks,
Nikhil

Level 2
June 6, 2021
Project 'com.mysite:mysite.ui.frontend:1.0.0-SNAPSHOT' is duplicated in the reactor - I am still getting this error @nikhil-kumar, even after trying mvn clean once
Level 3
June 8, 2022

I'm still seeing this issue. Is it resolved already? If yes, can you please share the solution.

July 24, 2022

You can comment on two modules of ui.frontend.

like as,

 

or anyone nock to me via my email(mohammadmostafa1094@gmail.com) for fix the problem lively no need any demand.