AEM Project Creation command using Latest archetype(46) for Use the AEM add-on Forms Features | Community
Skip to main content
October 31, 2023
Solved

AEM Project Creation command using Latest archetype(46) for Use the AEM add-on Forms Features

  • October 31, 2023
  • 2 replies
  • 739 views

Hi Team

 

We are working purely Adobe AEM Forms (Osgi Forms (addon-forms) Project , We Planning use if any features related Adobe add-on Forms project creating using latest archetype (46) . Please share the Command (windows) to create the AEM Project for Forms .

 

I had tried following not able created project without any manual fixes applied to successfully build projects .
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=46 -D appTitle="My Site" -D appId="mysite" -D groupId="com.mysite" -D aemVersion="6.5.17"

 

Getting below Error:

As per below reference  AEM On-premises version 6.5.17 recommended Archetype 46 :

https://github.com/adobe/aem-project-archetype/blob/develop/VERSIONS.md

 

& Not able to create using archetype version 44 , some projects (ex :dispatcher module (_ams,cloud) Missing when i run mvn package and manually fix some errors ui.apps build  successfully (module and main pom.xml need to fixed sync )


mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=44 -D appTitle="My Site" -D appId="mysite" -D groupId="com.mysite" -D aemVersion="6.5.17"

 

 

 

 

Please share the Working Command to Create AEM Project to On-premises using version 6.5.17 or 6.5.18  with build success 

Regards

Vara

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

Hello @varaande 

 

The following command should work

 

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=44 -D appTitle="WKND Sites Project" -D appId="wknd" -D groupId="com.adobe.aem.guides" -D artifactId="aem-guides-wknd" -D package="com.adobe.aem.guides.wknd" -D version="0.0.1-SNAPSHOT" -D aemVersion="6.5.17" -D includeDispatcherConfig="y"

 

 

 

46 is throwing error, like you mentioned. The following documentation suggests 44 https://github.com/adobe/aem-project-archetype

2 replies

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
October 31, 2023

Hello @varaande 

 

The following command should work

 

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=44 -D appTitle="WKND Sites Project" -D appId="wknd" -D groupId="com.adobe.aem.guides" -D artifactId="aem-guides-wknd" -D package="com.adobe.aem.guides.wknd" -D version="0.0.1-SNAPSHOT" -D aemVersion="6.5.17" -D includeDispatcherConfig="y"

 

 

 

46 is throwing error, like you mentioned. The following documentation suggests 44 https://github.com/adobe/aem-project-archetype

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
November 1, 2023

@varaande Did you find the suggestions from Aanchal helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni