What is the command for create aem using maven | Community
Skip to main content
March 3, 2022
Solved

What is the command for create aem using maven

  • March 3, 2022
  • 2 replies
  • 1513 views

 

Hi,

 

Can you help me with mvn command to create AEM project.

 

I am using java: "1.8.0_321"

Maven:3.8.4

AEM: 6.5.0

Frontend: React

On-promise 

 

Thanks in advance

 

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 Anny0505

@foalowaini, I think you need the latest version of Java at least java11. 

 

Please follow below URL :https://www.linkedin.com/pulse/aem-project-setup-using-maven-archetype-26-64-keshav-chaurasiya/

 or

You can use below command and follow this

mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=26 -D appTitle="My Project" -D appId="myproject" -D groupId="com.myproject.aem" -D artifactId="myproject-aem-project" -D version="0.0.1-SNAPSHOT" -D aemVersion="6.5.4" -D includeDispatcherConfig=n -D includeExamples=n

 

Hope this helps!!!.

2 replies

Bhuwan_B
Community Advisor
Community Advisor
March 3, 2022

@foalowaini Please use the latest AEM project archetype command from the below URL:

https://github.com/adobe/aem-project-archetype

March 6, 2022

@anny0505 / @bhuwan_b 

 

Thank you for your replay

 

I tried your commands it create the projects successfully with a lot of warning messages.

then, I install it to AEM

 

after I open the AEM next time I got this message.

 

 

Anny0505
Community Advisor
Anny0505Community AdvisorAccepted solution
Community Advisor
March 3, 2022

@foalowaini, I think you need the latest version of Java at least java11. 

 

Please follow below URL :https://www.linkedin.com/pulse/aem-project-setup-using-maven-archetype-26-64-keshav-chaurasiya/

 or

You can use below command and follow this

mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=26 -D appTitle="My Project" -D appId="myproject" -D groupId="com.myproject.aem" -D artifactId="myproject-aem-project" -D version="0.0.1-SNAPSHOT" -D aemVersion="6.5.4" -D includeDispatcherConfig=n -D includeExamples=n

 

Hope this helps!!!.