I'm creating an AEM project using Maven Archetype but I keep getting errors:
[WARNING] Archetype not found in any catalog. Falling back to central repository.
[WARNING] The POM for com.adobe.aem:aem-project-archetype:jar:23 is missing, no dependency information available
[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.aem:aem-project-archetype:23) -> [Help 1]
AEM Version: 6.5.0
Java Version: 11.0.17
Maven Version: 3.8.6
Commands used:
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -D archetypeGroupId=com.adobe.granite.archetypes -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=23 -D appTitle="My Site" -D appId="mysite" -D groupId="com.mysite" -D frontendModule=general
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=23 -D appTitle="My Site" -D appId="mysite" -D groupId="com.mysite" -D frontendModule=general
I tried many archetype versions (older and newer than the required one "23") and tried these solutions but didn't solve the problem:
Cannot build a project using maven archetype installed locally
Try adding
-P adobe-public
to the maven command.