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)?
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)?