Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Error while generating archetype in maven for CQ5 project creation

Avatar

Level 3

Hi Team,

I tried to build a sample CQ project in eclipse by following the " http://docs.adobe.com/docs/en/cq/5-6-1/developing/developmenttools/how-to-build-aem-projects-using-... " article.

While generating the archetype for "multimodule-content-package-archetype" it is showing as "

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:create (default-cli) on project standalone-p
m: Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.3:create for parameter #: Cannot cre
te instance of interface org.apache.maven.artifact.repository.ArtifactRepository -> [Help 1] " 

I am using maven version 3.2.5 and using Luna IDE.

Can anyone help me on this.

Many thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

See this community article - it will get you up and running and has been used by many AEM community members:

Creating your first AEM Service using an Adobe Maven Archetype project

View solution in original post

5 Replies

Avatar

Correct answer by
Level 10

See this community article - it will get you up and running and has been used by many AEM community members:

Creating your first AEM Service using an Adobe Maven Archetype project

Avatar

Level 3

Hi Donald ,

Followed the article which shared, and still getting the error called "[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
.3:generate (default-cli) on project standalone-pom: The desired archetype does
not exist (com.day.jcr.vault:multimodule-content-package-archetype:1.0.0) -> [He
lp 1]"

After some R&D got to know there is no jar for multimodule-content-package-archetype available under the mentioned repo.

https://repo.maven.apache.org/maven2/com/day/jcr/vault/multimodule-content-package-archetype/1.0.0/multimodule-content-package-archetype-1.1.2.jar

https://repo.maven.apache.org/maven2/com/day/jcr/vault/multimodule-content-package-archetype/1.0.0/multimodule-content-package-archetype-1.0.0.jar

Please help me on this.

Thanks,

Sony

Avatar

Level 10

which version of archetype are you using ?

Avatar

Employee

What is exactly the cmd you execute?

Avatar

Level 3

@Fieke, I am using

mvn archetype:generate -DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.aem.community -DartifactId=echoproject -Dversion=1.0-SNAPSHOT -Dpackage=com.aem.community -DappsFolderName=myproject -DartifactName="My Project" -DcqVersion="5.6.1" -DpackageGroup="My Company"

to execute .

@bsloki, im trying for 1.0.2 version of archetype of multimodule-content-package-archetype

 

Thanks.