Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Error while generating archetype in maven for CQ5 project creation

Sony006
Level 3
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
smacdonald2008
Correct answer by
Level 10
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
smacdonald2008
Correct answer by
Level 10
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

Sony006
Level 3
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

Lokesh_Shivalingaiah
Community Advisor
Community Advisor

which version of archetype are you using ?

Sony006
Level 3
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.