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
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
Post a Comment