Skip to main content
Level 2
September 9, 2026
Solved

What is the appropriate AEM Project Archetype version for AEM 6.5.0 in 2026? Is there a way to use older AEM Project Archetype versions (e.g. 18 - 23)?

  • September 9, 2026
  • 3 replies
  • 111 views

Hi everyone,

I’ve been trying to build this project without much success. Here’s the command I used last:

```

mvn -B archetype:generate ^
 -D archetypeGroupId=com.adobe.aem ^
 -D archetypeArtifactId=aem-project-archetype ^
 -D archetypeVersion=23 ^
 -D aemVersion=6.5.0 ^
 -D appTitle="My Site" ^
 -D appId="mysite" ^
 -D groupId="com.mysite" ^
 -D frontendModule=general ^
 -D includeExamples=y

```

I am on windows and I do use cmd with administrator privileges.

 

I’ve tried numerous versions of the command above and I haven’t managed to get it running. Sometimes the build command fails, other times the `mvn clean install` or `mvn clean install -PautoInstallPackage` or `mvn clean install -PautoInstallSinglePackage` fails. And the times that both work and I can see the project in AEM it is still not functioning properly. For example I get an error when trying to create a page.

 

My question is more general as I’m trying to understand how this all works. I have the AEM 6.5.0 version.

From aem-project-archetype/VERSIONS.md at develop · adobe/aem-project-archetype · GitHub I can see that it’s supported from version 18 - 23. Trying those I usually get an error like so:

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

 

I’ve tried both with `com.adobe.granite.archetypes` and `com.adobe.aem`.

 

I’ve seen on other forum threads people suggest later archetype versions (e.g. 39, 44) but those do not support 6.5.0 according to the link above.

 

I’ve also tried different maven-arhetype-plugin versions and still no luck.

 

Am I understanding something wrong with the versions? My assumption is that even if the commands work with  -D archetypeVersion=57 for example, the fact that version 57 does not support 6.5.0 causes the error I get when creating a page. Is that correct? Is there a way for me to use older archetype versions (e.g. 18 - 23)?

Best answer by IliasKa

Here’s how I solved it. 
1) Manually download archetype version 23 from https://repo1.maven.org/maven2/com/adobe/granite/archetypes/aem-project-archetype/23/aem-project-archetype-23.maven-archetype
2) Rename it to aem-project-archetype-23.jar
3) Run mvn install:install-file -Dfile=aem-project-archetype-23.jar -DgroupId=com.adobe.granite.archetypes -DartifactId=aem-project-archetype -Dversion=23 -Dpackaging=jar
4) Generate mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=local -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=23 -DaemVersion=6.5.0 -DappTitle="My AEM Project" -DappId="myaemproject" -DgroupId=com.mycompany -DartifactId=my-aem-project -Dversion=1.0-SNAPSHOT -DfrontendModule=none -DincludeDispatcherConfig=n -DincludeExamples=n

5) Manually remove frontend modules from root pom.xml​​​​​​​

6)Manually remove the folders from project root

7)Build locally mvn clean install

8)Deploy mvn clean install -PautoInstallSinglePackage

 

This way functionality like editing existing pages and creating new ones seems to work normally.

3 replies

Jineet_Vora
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
September 9, 2026

​@IliasKa - Can you not update AEM to latest AEM 6.5 LTS 3 if you are starting afresh? If you are not, then you shouldn’t stay on AEM 6.5.0 as that is almost EOL already as mentioned here https://experienceleague.adobe.com/en/docs/experience-manager-release-information/aem-release-updates/update-releases-roadmap

You’re right to use the archetype version between 18-23 for AEM 6.5.0 but the fact that AEM 6.5 is being EOL, I think this is the reason why older archetypes are not available on Maven Central as I am clearly seeing in your ERROR.

The recommendation is to use the latest AEM 6.5 LTS and then use the supported archetype.

IliasKaAuthor
Level 2
September 10, 2026

​@Jineet_Vora Thank you for taking the time to read and reply!

 

Unfortunately, I can’t use a different version as of now. This is just for personal learning so I don’t mind that it’s close to EOL. 

 

According to the README.md I should be able to use older archetype versions by using `com.adobe.granite.archetype` but that does not work either.

 

To your knowledge, is there a way for me to use one of 18-23 versions?

IliasKaAuthorAccepted solution
Level 2
September 10, 2026

Here’s how I solved it. 
1) Manually download archetype version 23 from https://repo1.maven.org/maven2/com/adobe/granite/archetypes/aem-project-archetype/23/aem-project-archetype-23.maven-archetype
2) Rename it to aem-project-archetype-23.jar
3) Run mvn install:install-file -Dfile=aem-project-archetype-23.jar -DgroupId=com.adobe.granite.archetypes -DartifactId=aem-project-archetype -Dversion=23 -Dpackaging=jar
4) Generate mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=local -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=23 -DaemVersion=6.5.0 -DappTitle="My AEM Project" -DappId="myaemproject" -DgroupId=com.mycompany -DartifactId=my-aem-project -Dversion=1.0-SNAPSHOT -DfrontendModule=none -DincludeDispatcherConfig=n -DincludeExamples=n

5) Manually remove frontend modules from root pom.xml​​​​​​​

6)Manually remove the folders from project root

7)Build locally mvn clean install

8)Deploy mvn clean install -PautoInstallSinglePackage

 

This way functionality like editing existing pages and creating new ones seems to work normally.