Unable to create archetype maven project | Community
Skip to main content
New Participant
December 2, 2015
Solved

Unable to create archetype maven project

  • December 2, 2015
  • 12 replies
  • 8759 views

Hi All,

I am newbie to AEM and following the steps of Creating an AEM project using Eclipse IDE.

Have configured Maven. But i couldn't able to create Adobe CQ archetype project.

I am executing the command,

" 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" "

But, it is showing error as,

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.day.jcr.vault:multimodule-content-package-archetype:1.0.2) -> [Help 1]

Please help in fixing this issue.

Regards,

Maria Anto

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 edubey

Hi Maria,

One reason could he that your network might not be allowing to download Jar files

Please take a look at a better recommended approach using eclipse AEM plugin

12 replies

Peter_Puzanovs
New Participant
December 2, 2015

Check your corporate proxy/repo settings re-run your command

Run on my local env:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.368s
[INFO] Finished at: Wed Dec 02 15:40:35 GMT 2015
[INFO] Final Memory: 15M/485M
[INFO] ------------------------------------------------------------------------

Command used(executed via IntelliJ):

C:\Users\peter.puzanovs\test>"C:\Program Files\Java\jdk1.7.0_79\bin\java" -Xmx5
12M -XX:MaxPermSize=512m "-Dmaven.home=C:\Users\peter.puzanovs\Downloads\Intelli
J IDEA Community Edition 14.1.5\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:
\Users\peter.puzanovs\Downloads\IntelliJ IDEA Community Edition 14.1.5\plugins\m
aven\lib\maven3\bin\m2.conf" -Didea.launcher.port=7533 "-Didea.launcher.bin.path
=C:\Users\peter.puzanovs\Downloads\IntelliJ IDEA Community Edition 14.1.5\bin" -
Dfile.encoding=windows-1252 -classpath "C:\Users\peter.puzanovs\Downloads\Intell
iJ IDEA Community Edition 14.1.5\plugins\maven\lib\maven3\boot\plexus-classworld
s-2.4.jar;C:\Users\peter.puzanovs\Downloads\IntelliJ IDEA Community Edition 14.1
.5\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.c
lassworlds.Launcher -Didea.version=14.1.5 archetype:generate -DarchetypeRepository=http://repo.adobe.com/nexus
/content/groups/public/ -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifact
Id=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"

Thanks,

Peter

edubey
edubeyAccepted solution
New Participant
December 2, 2015

Hi Maria,

One reason could he that your network might not be allowing to download Jar files

Please take a look at a better recommended approach using eclipse AEM plugin