Expand my Community achievements bar.

SOLVED

Unable to create archetype maven project

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

12 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Community Advisor

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

Avatar

Level 10

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

Avatar

Level 10

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.

Avatar

Level 2

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

Avatar

Level 2

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.

Avatar

Level 2

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

Avatar

Level 10

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

Avatar

Administrator

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

Avatar

Level 2

Ok,

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

Thanks to all.

Regards,

Maria Anto

Avatar

Employee

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

Avatar

Level 1

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>