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

Unable to create archetype maven project

  • December 2, 2015
  • 12 replies
  • 8760 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

edubey
edubeyAccepted solution
Level 10
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

Peter_Puzanovs
Community Advisor
Community Advisor
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

smacdonald2008
Level 10
December 2, 2015

This Maven command is working - it looks like a setting within your environment. See this links that Praveen referenced. 

Ratna_Kumar
Level 10
December 2, 2015

Hi Maria,

There is no issue with the Maven command.

You can also create AEM project using Eclipse IDE by using Vault tool available in AEM.

Look into this article which discusses the same: https://helpx.adobe.com/experience-manager/using/creating-aem-project-using-eclipse.html

Thanks,
Ratna Kumar.

mariaantoAuthor
Level 2
December 3, 2015

Hi Praveen,

Thanks for your quick response. I have tried that also, no luck.

It seems to be proxy connectivity issue at our network.

Still i have great confusion in developing AEM projects using eclipse.Shall i follow the steps mentioned in url, https://helpx.adobe.com/experience-manager/using/creating-aem-project-using-eclipse.html 

Else, any other way of developing AEM.

Thanks,

Maria Anto

mariaantoAuthor
Level 2
December 3, 2015

Ratna Kumar wrote...

Hi Maria,

There is no issue with the Maven command.

You can also create AEM project using Eclipse IDE by using Vault tool available in AEM.

Look into this article which discusses the same: https://helpx.adobe.com/experience-manager/using/creating-aem-project-using-eclipse.html

Thanks,
Ratna Kumar.

 

---------------------------------------------------------------------------------------

I am following the steps of above link only.

mariaantoAuthor
Level 2
December 3, 2015

System Configuration:

OS: Windows 8.1 Pro 64bit

java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Maven version:

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 19:2128+0530)

Maven home: C:\Program Files\Apache\apache-maven-3.0.5
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_71\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"

Eclipse: 

Eclipse Java EE IDE for Web Developers.

Version: Luna Release (4.4.0)
Build id: 20140612-0600

edubey
Level 10
December 3, 2015

Hi Maria, 

As far as I see, either way you need to resolve firewall issue you have with network connectivity to work with any approach.

I faced same network issue long back.

If you want easy of use, i would strongly recommend to use AEM plugin.

Thanks

kautuk_sahni
Community Manager
Community Manager
December 3, 2015

Hi 

The Maven command is working. No problem with it. As mentioned by Peter check the settings and try rerunning the command.

Reference links :- http://adobeaemclub.com/aem-eclipse-plugin-setup-tutorial/ and http://adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/ (as mentioned by Praveen).

I hope this would help you.

Thanks and Regards

Kautuk Sahni

 

Kautuk Sahni
mariaantoAuthor
Level 2
December 3, 2015

Ok,

Let me try direct internet access in our network and i will update the status.

Thanks to all.

Regards,

Maria Anto