Creating an AEM Project using Maven
AEM 6.5.5 Project can be created by using maven Command.
Make sure the softwares are installed.
Here we will use the below command on the command prompt.
Run the below command on cmd prompt.
mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=42 -D appTitle="Learn AEM" -D appId="learnaem" -D groupId="com.learnaem" -DincludeExamples=y -DaemVersion=6.5.5 -DincludeDispatcherConfig=n -DfrontendModule=none -DincludeExamples=Y -DincludeErrorHandler=Y -DlanguageCountry="en_us" -DsingleCountry=y
Note: If you want to run for FE framework like react/angular then change command to frontendModule=react or angular
We are using Adobe Archtype 26 which will create the structure of the project. For more info refer the adobe archtype github.
All the above mentioned variable can be refered in the adobe archtype read.md github.
with above command below folder structure is created.
All Folder is the place where your zip file will be generated after running mvn clean install. Use that zip file to install in AEM packagemanager.
Core - is used to write Java code.
Ui.apps- is used to create our components.
ui.config - related to runmodes and configurations.
ui.content - will have templates and project content.
Comments
Post a Comment