Now that Eclipse has a plugin for AEM, you can create AEM projects directly within Eclipse, new project. However, the command line to create the AEM project method po up, for reference, welcome to the great God.
1. Replace Maven's settings.xml with the following:
<?xml version= "1.0" encoding= "UTF-8"?> <settings xmlns= "http://maven.apache.org/SETTINGS/1.0.0" xmlns : xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation= "http://maven.apache.org/SETTINGS/1.0.0 htt P://maven.apache.org/xsd/settings-1.0.0.xsd "> <!--modified to your local MAVEN warehouse path--<localrepository>c:/reposit
ories/maven</localrepository> <profiles> <profile> <id>adobe-public</id> <activation> <activeByDefault>false</activeByDefault> </activation> <proper Ties> <releaseRepository-Id>adobe-public-releases</releaseRepository-Id> <releaserepos Itory-name>adobe Public releases</releaserepository-name> <releaserepository-url>http://repo.adobe
.com/nexus/content/groups/public</releaserepository-url> </properties> <repositories>
<repository> <id>adobe-public-releases</id> <name>adobe Public repository</name>
<url>http://repo.adobe.com/nexus/content/groups/public</url> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </r eleases> <snapshots> <enabled>false</enabled> </snapsho ts> </repository> </repositories> <pluginRepositories> <pluginreposit ory> <id>adobe-public-releases</id> <name>adobe Public repository</name&
Gt <url>http://repo.adobe.com/nexus/content/groups/public</url> <releases> &L T;enabled>true</enabled> <updatePolicy>never</updatePolicy> </releas
Es> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeprofil es> <activeProfile>adobe-public</activeProfile> </activeProfiles> </settings>
2. Access the following command in CMD
MVN archetype:generate-darchetyperepository=https://repo.adobe.com/nexus/content/groups/public/- Darchetypegroupid=com.day.jcr.vault-darchetypeartifactid=multimodule-content-package-archetype- Darchetypeversion=1.0.2-dgroupid=my-group-id-dartifactid=myproject-dversion=1.0-snapshot-dpackage= Com.mycompany.myproject-dappsfoldername=myproject-dartifactname= "My Project"-dcqversion= "5.6.1"-DpackageGroup= " My Company "
Here is the project to create a project named MyProject.
Execute command IF error: the desired archetype does not exist (Multimodule-content-package-archetype), need to be https://repo.adobe.com/ Nexus/content/groups/public/com/day/jcr/vault/multimodule-content-package-archetype/1.0.2/ The Multimodule-content-package-archetype-1.0.2.jar in the directory is downloaded and placed in the directory corresponding to the configured local repository.
3. Re-executing the 2 command
Console prompt input (y::), enter Y, carriage return
Build Success. The project was created successfully.
Additional tutorial on creating AEM projects in Eclipse, original post: http://www.adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/