Error in generating a Project from archetype 13 or 23 | Community
Skip to main content
Level 2
April 22, 2022
Solved

Error in generating a Project from archetype 13 or 23

  • April 22, 2022
  • 1 reply
  • 2322 views

Hello Community Members,

I am trying to generate a project from archetype 13, but getting below error 
The desired archetype does not exist (com.adobe.granite.archetypes:aem-project-archetype:13)

on further analysis, I found that it tries to download aem-project-archetype-13.jar, which doesn't exist at below location :
https://repo.maven.apache.org/maven2/com/adobe/granite/archetypes/aem-project-archetype/13/

--- maven-archetype-plugin:3.2.1:generate (default-cli) @ standalone-pom ---

[INFO] Generating project in Interactive mode

[INFO] Archetype repository not defined. Using the one from [com.adobe.granite.archetypes:aem-project-archetype:23] found in catalog remote

Downloading from central: https://repo.maven.apache.org/maven2/com/adobe/granite/archetypes/aem-project-archetype/23/aem-project-archetype-23.pom

Downloaded from central: https://repo.maven.apache.org/maven2/com/adobe/granite/archetypes/aem-project-archetype/23/aem-project-archetype-23.pom (6.2 kB at 16 kB/s)

Downloading from central: https://repo.maven.apache.org/maven2/com/adobe/granite/archetypes/aem-project-archetype/23/aem-project-archetype-23.jar



where in I am able to generate a project successfully with archetype 36, which has jar at this location:
https://repo.maven.apache.org/maven2/com/adobe/aem/aem-project-archetype/36/

Can anyone help me how can I generate a project with archetype 13 or 23 ?

Thanks in advance.


PS: I have a requirement of generating project from old archetype.


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 Kiran_Vedantam

HI @kirtia 

 

I am able to create a project with archetype13, below is the command

 

mvn archetype:generate -B -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=13 -DgroupId=com.adobe.aem.guides -Dversion=0.0.1-SNAPSHOT -DappsFolderName=wknd -DartifactId=aem-guides-wknd -Dpackage=com.adobe.aem.guides.wknd -DartifactName="WKND Sites Project" -DcomponentGroupName=WKND -DconfFolderName=wknd -DcontentFolderName=wknd -DcssId=wknd -DisSingleCountryWebsite=n -Dlanguage_country=en_us -DoptionAemVersion=6.4.7 -DoptionDispatcherConfig=none -DoptionIncludeErrorHandler=n -DoptionIncludeExamples=y -DoptionIncludeFrontendModule=y -DpackageGroup=wknd -DsiteName="WKND Site" -DappId="wknd" -DappTitle="WKND"

 

Also, check your settings.xml file in your .m2 directory. It should have a profile on the adobe-public repo.

 

Hope this helps!

 

Thanks,

Kiran Vedantam.

1 reply

Kiran_Vedantam
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
April 22, 2022

HI @kirtia 

 

I am able to create a project with archetype13, below is the command

 

mvn archetype:generate -B -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=13 -DgroupId=com.adobe.aem.guides -Dversion=0.0.1-SNAPSHOT -DappsFolderName=wknd -DartifactId=aem-guides-wknd -Dpackage=com.adobe.aem.guides.wknd -DartifactName="WKND Sites Project" -DcomponentGroupName=WKND -DconfFolderName=wknd -DcontentFolderName=wknd -DcssId=wknd -DisSingleCountryWebsite=n -Dlanguage_country=en_us -DoptionAemVersion=6.4.7 -DoptionDispatcherConfig=none -DoptionIncludeErrorHandler=n -DoptionIncludeExamples=y -DoptionIncludeFrontendModule=y -DpackageGroup=wknd -DsiteName="WKND Site" -DappId="wknd" -DappTitle="WKND"

 

Also, check your settings.xml file in your .m2 directory. It should have a profile on the adobe-public repo.

 

Hope this helps!

 

Thanks,

Kiran Vedantam.