Creating project using archetype 39 failed | Community
Skip to main content
Level 2
February 7, 2023
Solved

Creating project using archetype 39 failed

  • February 7, 2023
  • 5 replies
  • 5089 views

When trying to create an AEM project using archetype 39, it shows build failure.

 

Command Used: mvn -B archetype:generate \ -D archetypeGroupId=com.adobe.aem \ -D archetypeArtifactId=aem-project-archetype \ -D archetypeVersion=39 \ -D aemVersion=cloud \ -D appTitle="My Site" \ -D appId="mysite" \ -D groupId="com.mysite" \ -D frontendModule=general \ -D includeExamples=n

 

Error Message while creating project using archetype 39 is as below:

 

Below are the configurations that I have on my local:

 

Java version: 11.0.16.1

 

Maven Version: Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29)

 

Can someone help me on it please? Thanks!

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 krishna_sai

Can you open command prompt as administrator and try?

5 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
February 7, 2023
krishna_sai
Community Advisor
Community Advisor
February 7, 2023

Hi @srk381 
Can you please try this command by opening cmd as adminstrator
mvn -B archetype:generate -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=39 -DaemVersion=cloud -DappTitle="My Site" -DappId="mysite" -DgroupId="com.mysite" -DfrontendModule=general -DincludeExamples=n

 



Hope this works,

Thanks,

Krishna

Madhur-Madan
Community Advisor
Community Advisor
February 7, 2023

Hi @srk381,

Try using the following command:

mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=39 -D aemVersion=cloud -D appTitle="My Site" -D appId="mysite" -D groupId="com.mysite" -D frontendModule=general


I hope this helps.

srk381Author
Level 2
February 7, 2023

When using the command mentioned above, it still shows following error for me:

 

krishna_sai
Community Advisor
krishna_saiCommunity AdvisorAccepted solution
Community Advisor
February 8, 2023

Can you open command prompt as administrator and try?

Ritesh_Mittal
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 7, 2023

Hi @srk381 ,

 

Try removing backslash '\' from your command and see if it resolves the issue. I see similar kind of issue reported below-

 

https://stackoverflow.com/questions/12593628/maven-error-no-pom-in-this-project-when-performing-archetypegenerate

 

Thanks,

Ritesh Mittal

Manu_Mathew_
Community Advisor
Community Advisor
February 8, 2023

@srk381 Looks like there are some extra spaces after -D in your cmd, also you could remove '\'. You could try this -

mvn -B archetype:generate -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=39 -DaemVersion=cloud -DappTitle="My Site" -DappId="mysite" -DgroupId="com.mysite" -DfrontendModule=general -DincludeExamples=n

This should work.