How to use Maven Deployment for CQ5.6. documentation are available only for 5.6.1 and higher | Community
Skip to main content
ramyan60274153
New Participant
October 16, 2015
Solved

How to use Maven Deployment for CQ5.6. documentation are available only for 5.6.1 and higher

  • October 16, 2015
  • 4 replies
  • 1122 views

How to use Maven Deployment for CQ5.6. documentation are available only for 5.6.1 and higher.

Please let me know is it possible to use the maven ,eclipse integration for CQ5.6.0,if yes please provide the documentation link.

Thanks

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 smacdonald2008

I justed tested this -- it works - as shown here:

[img]AMaven.png[/img]

The issue you have looks like a Maven Config issue. Did you get the Adobe Repository in the settings.xml file?

4 replies

smacdonald2008
New Participant
October 16, 2015

Although this article was written for AEM 6, you can try and see if this works on 5.6. The POM file should work on AEM 5.6 (there is no AEM 6 specific dependencies).

We are using the vault tool to sync code between Eclipse and the JCR (available wiht 5.6). 

https://helpx.adobe.com/experience-manager/using/creating-aem-project-using-eclipse.html

I am going to test this article with AEM 5.6 as well. If required - we will update for 5.6.

ramyan60274153
New Participant
October 16, 2015

Thanks a lot for the reply.

Am trying to build the Maven project using the 

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 Build is failing and getting the below error:

pe-1.0.2.pom
Downloading: http://repo.maven.apache.org/maven2/com/day/jcr/vault/multimodule-c
ontent-package-archetype/1.0.2/multimodule-content-package-archetype-1.0.2.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.314s
[INFO] Finished at: Fri Jul 17 23:10:59 IST 2015
[INFO] Final Memory: 8M/15M
[INFO] ------------------------------------------------------------------------
[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.2) -> [He
lp 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
E:\AdobeCQ5>

when I hit: http://repo.maven.apache.org/maven2/com/day/jcr/vault/multimodule-content-package-archetype/1.0.2/multimodule-content-package-archetype-1.0.2.pom it shows 404 error. what can be done here. please suggest.

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

I justed tested this -- it works - as shown here:

[img]AMaven.png[/img]

The issue you have looks like a Maven Config issue. Did you get the Adobe Repository in the settings.xml file?

ramyan60274153
New Participant
October 16, 2015

I copied the pom from adobe repository. may be there was an issue with the POM download from the path .

Thanks for giving the hint of adobe repository. Build is success!