コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

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

Avatar

Level 3

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

1 受け入れられたソリューション

Avatar

正解者
Level 10

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 返信

Avatar

Level 10

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.

Avatar

Level 3

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/mu... it shows 404 error. what can be done here. please suggest.

Avatar

正解者
Level 10

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?

Avatar

Level 3

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!