Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Child Module error

Avatar

Level 2

Hi Community, 
@VeenaVikraman 
Getting the below error while trying to build a project.
I am running the below command
 mvn clean install -PautoInstallSinglePackage -Pclassic

D:\AEM Project\aem-wknd-spa\mysite>mvn clean install [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs:


[ERROR] Child module D:\AEM Project\aem-wknd-spa\mysite\ui.frontend of D:\AEM Project\aem-wknd-spa\mysite\pom.xml does not exist @ [ERROR] Child module D:\AEM Project\aem-wknd-spa\mysite\dispatcher of D:\AEM Project\aem-wknd-spa\mysite\pom.xml does not exist @ @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR]


[ERROR] The project com.mysite:mysite:1.0.0-SNAPSHOT (D:\AEM Project\aem-wknd-spa\mysite\pom.xml) has 2 errors

[ERROR] Child module D:\AEM Project\aem-wknd-spa\mysite\ui.frontend of D:\AEM Project\aem-wknd-spa\mysite\pom.xml does not exist

[ERROR] Child module D:\AEM Project\aem-wknd-spa\mysite\dispatcher of D:\AEM Project\aem-wknd-spa\mysite\pom.xml does not exist [ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1]

http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@adityas31531516 I think there is some issues in the pom.xml. The errors clearly say that the child modules are missing. That said , it is looking for the pom.xml for the child modules and it might be missing. Can you cross check this ? Also , if you followed some tutorial , could you share the link or the steps you followed. It will help us to check what exactly is going wrong here

 

Edit :- Did you follow this GIT ? https://github.com/adobe/aem-guides-wknd-spa . If so , please make sure to follow the right steps mentioned. Assuming if we want to run the React branch , do the below properly

 

$ git clone git@github.com:adobe/aem-guides-wknd-spa.git
$ cd aem-guides-wknd-spa
$ git checkout React/latest
$ mvn clean install -PautoInstallSinglePackage

You have to make sure that you switch your branch to the right one ( like highlighted above ) . Once done that , instead of running -PautoInstallSinglePackage , run mvn clean install  and check if everything is running fine !

 

I tried the same in my local and I have below modules in my package 

Veena_Vikram_0-1623058597412.png Also I ran the build command in my git bash and all seems to be working fine 

Veena_Vikram_1-1623058644301.png

 

Can you recheck and let us know your steps you followed ?

 

Thanks

Veena ✌

View solution in original post

4 Replies

Avatar

Employee Advisor

@adityas31531516  It seems your project does not contain the child modules ui.frontend and dispatcher under D:\AEM Project\aem-wknd-spa\mysite\ which the profile is looking for. PLease add these modules or comment these in parent pom.xml

Avatar

Level 2
Project 'com.mysite:mysite.ui.frontend:1.0.0-SNAPSHOT' is duplicated in the reactor

Avatar

Level 2
HProject 'com.mysite:mysite.ui.frontend:1.0.0-SNAPSHOT' is duplicated in the reactor

Avatar

Correct answer by
Community Advisor

@adityas31531516 I think there is some issues in the pom.xml. The errors clearly say that the child modules are missing. That said , it is looking for the pom.xml for the child modules and it might be missing. Can you cross check this ? Also , if you followed some tutorial , could you share the link or the steps you followed. It will help us to check what exactly is going wrong here

 

Edit :- Did you follow this GIT ? https://github.com/adobe/aem-guides-wknd-spa . If so , please make sure to follow the right steps mentioned. Assuming if we want to run the React branch , do the below properly

 

$ git clone git@github.com:adobe/aem-guides-wknd-spa.git
$ cd aem-guides-wknd-spa
$ git checkout React/latest
$ mvn clean install -PautoInstallSinglePackage

You have to make sure that you switch your branch to the right one ( like highlighted above ) . Once done that , instead of running -PautoInstallSinglePackage , run mvn clean install  and check if everything is running fine !

 

I tried the same in my local and I have below modules in my package 

Veena_Vikram_0-1623058597412.png Also I ran the build command in my git bash and all seems to be working fine 

Veena_Vikram_1-1623058644301.png

 

Can you recheck and let us know your steps you followed ?

 

Thanks

Veena ✌