Unable to create archetype maven project | Community
Skip to main content
Level 2
Dec 2, 2015 1:38 PM UTC
Solved

Unable to create archetype maven project

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.
edubey
edubeyAccepted solution
Level 10
Dec 2, 2015 1:47 PM UTC

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

New Participant
Feb 8, 2019 7:19 PM UTC

The links are not working.

For me the maven profile activeByDefault was set to false. Make sure to update settings.xml with this profile:

<id>adobe-public</id>

  <activation>

    <activeByDefault>true</activeByDefault>

  </activation>

  <repositories>

    <repository>

      <id>adobe</id>

      <name>Nexus Proxy Repository</name>

      <url>http://repo.adobe.com/nexus/content/groups/public/</url>

      <layout>default</layout>

    </repository>

  </repositories>

  <pluginRepositories>

    <pluginRepository>

      <id>adobe</id>

      <name>Nexus Proxy Repository</name>

      <url>http://repo.adobe.com/nexus/content/groups/public/</url>

      <layout>default</layout>

    </pluginRepository>

  </pluginRepositories>

</profile>

Translate
Feike_Visser1
Employee
Dec 3, 2015 12:13 PM UTC

It works for me, just tried this command...

Translate
mariaantoAuthor
Level 2
Dec 3, 2015 10:35 AM UTC

Ok,

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

Thanks to all.

Regards,

Maria Anto

Translate
kautuk_sahni
Employee
Dec 3, 2015 6:25 AM UTC

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

 

Translate
Kautuk Sahni
edubey
Level 10
Dec 3, 2015 6:09 AM UTC

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

Translate
mariaantoAuthor
Level 2
Dec 3, 2015 6:02 AM UTC

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

Translate
mariaantoAuthor
Level 2
Dec 3, 2015 5:51 AM UTC

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.

Translate
mariaantoAuthor
Level 2
Dec 3, 2015 5:48 AM UTC

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

Translate
Ratna_Kumar
Level 10
Dec 2, 2015 4:35 PM UTC

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.

Translate
smacdonald2008
Level 10
Dec 2, 2015 3:47 PM UTC

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

Translate