Command To Create Project Archetype
AEM Maven Project archetype#
#Maven Command To Create Project Archetype
- AEM 6.5 on premise
- Java 11
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.4.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=57 -D aemVersion=6.5.8 -D appTitle="My Site" -D appId="mysite" -D groupId="com.mysite" -D artifactId="mysite"#Startup AEM
@echo off
TITLE AEM 6.5 Author (Port 4502)
:: =======================================================
:: AEM 6.5 Local Dev Startup Script
:: Optimized for Windows 11 / 32GB RAM
:: =======================================================
:: --- 1. AEM Configuration ---
set AEM_JAR=aem-author-p4502.jar
set AEM_PORT=4502
set RUNMODES=author,crx3,crx3tar,localdev
:: --- 2. Debugging Configuration ---
:: Essential for IDE integration (IntelliJ/Eclipse)
set DEBUG_PORT=5005
set DEBUG_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=%DEBUG_PORT%
:: --- 3. Memory Allocation ---
:: With 32GB system RAM, an 8GB Max Heap is the sweet spot.
:: Allocating more than 8-12GB locally can cause excessive Garbage Collection (GC) pause times.
set MIN_HEAP=4096m
set MAX_HEAP=8192m
:: --- 4. JVM Tuning (Java 11 / Java 8 compatible) ---
set JVM_OPTS=-server -Xms%MIN_HEAP% -Xmx%MAX_HEAP%
set JVM_OPTS=%JVM_OPTS% -XX:+UseG1GC -XX:MaxGCPauseMillis=200
set JVM_OPTS=%JVM_OPTS% -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=crx-quickstart\logs\
set JVM_OPTS=%JVM_OPTS% -Djava.awt.headless=true
set JVM_OPTS=%JVM_OPTS% -Dfile.encoding=UTF-8
:: =======================================================
echo Starting AEM 6.5 Author...
echo Port: %AEM_PORT%
echo Memory: %MIN_HEAP% initial / %MAX_HEAP% max
echo Runmodes: %RUNMODES%
echo Debug Port: %DEBUG_PORT%
echo =======================================================
:: Execute AEM
java %JVM_OPTS% %DEBUG_OPTS% -jar %AEM_JAR% -r %RUNMODES% -p %AEM_PORT%
pause