← All resources
// Command · Free

AEM archetype generate command

One command scaffolds a full multimodule AEM project. Pick the version for your shell and copy it — then change the app title / id / groupId / artifactId to match your project. Adobe maintains the archetype; always use the latest archetypeVersion.

// Generate the project
macOS / Linux (bash)
Copy & paste as-is — the \ line breaks keep it readable.
bash
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
  -D archetypeGroupId=com.adobe.aem \
  -D archetypeArtifactId=aem-project-archetype \
  -D archetypeVersion=49 \
  -D appTitle="AEM Insider Site" \
  -D appId="aeminsider" \
  -D groupId="com.aeminsider" \
  -D artifactId="aeminsider-site" \
  -D aemVersion="cloud" \
  -D includeExamples=n \
  -D includeFrontendModule=general
Windows PowerShell
One line. Every -D flag is single-quoted so PowerShell doesn't mangle it. Run PowerShell as Administrator.
PowerShell
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate '-DarchetypeGroupId=com.adobe.aem' '-DarchetypeArtifactId=aem-project-archetype' '-DarchetypeVersion=49' '-DappTitle=AEM Insider Site' '-DappId=aeminsider' '-DgroupId=com.aeminsider' '-DartifactId=aeminsider-site' '-DaemVersion=cloud' '-DincludeExamples=n' '-DincludeFrontendModule=general'
Windows Command Prompt (cmd)
One line, plain -D flags. Run cmd as Administrator.
cmd
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=49 -D appTitle="AEM Insider Site" -D appId="aeminsider" -D groupId="com.aeminsider" -D artifactId="aeminsider-site" -D aemVersion="cloud" -D includeExamples=n -D includeFrontendModule=general
// What each parameter means
archetypeVersion=49
Latest blueprint version. Bump it as Adobe releases newer ones.
appId=aeminsider
Used in all JCR paths: /apps/aeminsider, /content/aeminsider.
groupId=com.aeminsider
Java package root for your code.
artifactId=aeminsider-site
The project folder name that gets created.
aemVersion=cloud
Cloud-ready structure. Use 6.5.0 for on-premise.
includeExamples=n
Clean project — no WKND sample code to delete later.
includeFrontendModule=general
Adds ui.frontend with a webpack build. Use react/angular for SPAs.

Archetype source: github.com/adobe/aem-project-archetype. Not affiliated with Adobe Inc.