Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

What is the command for create aem using maven

Avatar

Level 3

 

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

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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!!!.

View solution in original post

3 Replies

Avatar

Community Advisor

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

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

Bhuwan_B_0-1646312787665.png

Avatar

Level 3

@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.

foalowaini_0-1646554118623.png

 

 

Avatar

Correct answer by
Community Advisor

@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!!!.