create aem archetype project using maven

Maven is the project building tool as you already know so before going forward make sure you have installed maven in your system.

To create an Adobe Experience Manager archetype project using maven, follow these steps:


1. Open the command prompt in case window/terminal in case Linux and go to your working directory/folder.

2. Run the below command:

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=13 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/

3. It will ask for some information, When prompted,information include like project name package name etc.
(In my case it is AemDemoProject)


groupId – AEMProjectName(It would be your project Groupid)
artifactId – AEMProjectName
version – 1.0-SNAPSHOT
package – com.aem.packagename
appsFolderName – AEMProjectName
artifactName – AEMProjectName
componentGroupName – AEMProjectName
confFolderName – AEMProjectName
contentFolderName – AEMProjectName
cssId – AEMProjectName
packageGroup – AEMProjectName
siteName – AEMProjectName

4. When prompted, type Y.



5. Once done, you will see a message like:

[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 01:42 min
[INFO] Finished at: 2020-04-25T14:34:19-04:00
[INFO] Final Memory: 16M/463M
[INFO] ————————————————————————

So at the end it will create a project with name AemDemoProject.
It create a Adobe Experience Manager Project structure this is the parent folder and contains their pom.xml file and some child folders with their separate pom.xml files.
The child folder could be core,it.launcher, ui.app, ui.content files. In core folder this is the development environment, all development code goes here. component goes to ui.app and pages goes to ui.content folder.
In pom.xml file we put dependencies so that their jar files can be download automatically by IDM like Eclipse .



Adobe experience manager is the best content management system so far backed by java, jcr, osgi, sling etc.which is best suitable for content oriented web applications.
So aem tutorials give you all information about what is aem and what technologies used in, aem architecture let you know all these information.