Expand my Community achievements bar.

SOLVED

Error in generating a Project from archetype 13 or 23

Avatar

Level 2

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-proje...

Downloaded from central: https://repo.maven.apache.org/maven2/com/adobe/granite/archetypes/aem-project-archetype/23/aem-proje... (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.


1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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.