Prerequisite
Add this profile in maven
settings.xml file to fetch the project structure content from Adobe repo.
<profile>
<id>adobe-public</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>adobe</id>
<name>Nexus Proxy Repository</name>
<url>http://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>adobe</id>
<name>Nexus Proxy Repository</name>
<url>http://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
</profile>
Step 1: Then go to your folder where you want to create your project (e.g.
D:\Rashid\AEM\) and open command prompt cmd and run the following command.
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=11 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/ -DgroupId=myproject -DartifactId=myproject -Dversion=1.0-SNAPSHOT -Dpackage=com.aem.community -DappsFolderName=myproject -DartifactName="myproject" -DappsFolderName=myproject -DartifactName=myproject -DpackageGroup=myproject -DcontentFolderName="ui.content" -DsiteName="MyProject Site" -DcomponentGroupName="MyProject Components" -DcssId=myproject
Step 2: The above command will execute for a moment and then it will ask for parameter confirmation.
Confirm properties configuration:
groupId: myproject
artifactId: myproject
version: 1.0-SNAPSHOT
package: com.aem.community
appsFolderName: myproject
artifactName: myproject
componentGroupName: MyProject Components
contentFolderName: ui.content
cssId: myproject
packageGroup: myproject
siteName: MyProject Site
Y: :
Step 3: Confirm your parameters, type "Y" and hit enter. After that, your project is setup and available in your directory.
No comments:
Post a Comment