AEM projects using Maven archetypes

AEM projects can be created using the Maven archetypes

Run the below command to create the project. 
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=12 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/

Archetype Version - 12 for AEM 6.3 or newer
Archetype Version - 11 for AEM 6.2 or newer

Provide the required information as below example:

groupId:                             com.sudheer.aemgroup
artifactId:                           sampleproject
version:                              1.0-SNAPSHOT
package:                            com.sudheer.aem
appsFolderName:              sampleproject
artifactName:                     sampleproject
componentGroupName:    sampleproject
confFolderName:               sampleproject
contentFolderName:          sampleproject
cssId:                                  sampleproject
packageGroup:                  sampleproject
siteName:                          sampleproject

Once the project creation is completed, run the maven command to install the package to AEM instance as below:

mvn clean install -P autoInstallPackage,adobe-public


Congratulations on creating your first bundle and deploying to your local AEM server.


Reference: https://github.com/Adobe-Marketing-Cloud/aem-project-archetype


Comments

Popular posts from this blog

Delete DAM Asset using Workflow

Groovy Console Integration and executing scripts in AEM

AEM Project Maven Build - Easy setup and steps to run commands via command line