Error while generating archetype in maven for CQ5 project creation | Community
Skip to main content
Level 3
October 16, 2015
Solved

Error while generating archetype in maven for CQ5 project creation

  • October 16, 2015
  • 5 replies
  • 1532 views

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-apache-maven.html " 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.

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 smacdonald2008

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

5 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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

Sony006Author
Level 3
October 16, 2015

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
Level 10
October 16, 2015

which version of archetype are you using ?

Feike_Visser1
Adobe Employee
Adobe Employee
October 16, 2015

What is exactly the cmd you execute?

Sony006Author
Level 3
October 16, 2015

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