Skip to main content
Level 3
October 16, 2015
해결됨

Error while generating archetype in maven for CQ5 project creation

  • October 16, 2015
  • 5 답변들
  • 1571 조회

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.

이 주제는 답변이 닫혔습니다.
최고의 답변: 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 답변

Sony006작성자
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.

Feike_Visser1
Adobe Employee
Adobe Employee
October 16, 2015

What is exactly the cmd you execute?

Lokesh_Shivalingaiah
Level 10
October 16, 2015

which version of archetype are you using ?

Sony006작성자
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

smacdonald2008
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