Expand my Community achievements bar.

SOLVED

Best com.adobe.granite.archetype to select

Avatar

Level 6

If I create a new Maven project using the AEM plugin I get

com.adobe.granite.archetype : sample-project-archetype:5

and

com.adobe.granite.archetype : sample-project-archetype:6

and

com.adobe.granite.archetype : sample-project-archetype:7

to select from.

What is the difference betweeen them and the archetype I create from the command line using

mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DarchetypeRepository=adobe-public-releases -DcqVersion="6.0"

?

I know com.adobe.granite.archetype : sample-project-archetype:7 creates a project with 4 child projects and the DarchetypeArtifactId=multimodule-content-package-archetype creates a project with 2 child projects.

Regards

Clive Stewart

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Information about the Maven Project Archetype is located at https://github.com/adobe/aem-project-archetype

 

It also suggests the AEM versions supported by a current release

aanchalsikka_0-1701836643415.png

 

 


Aanchal Sikka

View solution in original post

4 Replies

Avatar

Level 9

You can find more information about different options for archetype.

http://cqblueprints.com/setup/maven.html

Avatar

Level 8

If you are creating a project for AEM 6 you should be using com.adobe.granite.archetype : sample-project-archetype:7 (5 and 6 are older versions of the archetype - unless you have a specific reason to use and older version you should use the latest version). If you are creating a project for 5.6.1 or below you should usemultimodule-content-package-archetype.  

Avatar

Correct answer by
Community Advisor

Information about the Maven Project Archetype is located at https://github.com/adobe/aem-project-archetype

 

It also suggests the AEM versions supported by a current release

aanchalsikka_0-1701836643415.png

 

 


Aanchal Sikka