Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Project with CIF enabled

Avatar

Level 2

Error while creating CIF project using the archetype:

mvn -B archetype:generate \

 -D archetypeGroupId=com.adobe.granite.archetypes \

 -D archetypeArtifactId=aem-project-archetype \

 -D aemVersion=6.5.11 \

 -D appTitle="My Site" \

 -D archetypeVersion=35 \

 -D appId="mysite" \

 -D groupId="com.mysite" \

 -D frontendModule=general \

 -D includeExamples=n \

 -D includeCommerce=y

 

error - [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.adobe.granite.archetypes:aem-project-archetype:35) -> [Help 1]

 

I am following this documentation - https://experienceleague.adobe.com/docs/experience-manager-65/commerce/storefront/developing/develop...

1 Accepted Solution

Avatar

Correct answer by
Level 10

I can see the archetypeGroupId that you are using is incorrect. Id should be 

-D archetypeGroupId=com.adobe.aem \

please try with this. I think the document needs to be updated on the link you shared.

Reference: 

https://github.com/adobe/aem-project-archetype

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-maven-archetype-24-loa...

 

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

I can see the archetypeGroupId that you are using is incorrect. Id should be 

-D archetypeGroupId=com.adobe.aem \

please try with this. I think the document needs to be updated on the link you shared.

Reference: 

https://github.com/adobe/aem-project-archetype

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-maven-archetype-24-loa...

 

Avatar

Community Advisor

Hi @sue1976, please try below command, it works fine on my end.

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
 -D archetypeGroupId=com.adobe.aem \
 -D archetypeArtifactId=aem-project-archetype \
 -D aemVersion=6.5.11 \
 -D archetypeVersion=35 \
 -D appTitle="My Site" \
 -D appId="mysite" \
 -D groupId="com.mysite" \
 -D includeExamples=n \
 -D includeCommerce=y