Synchronization issues using vaultfile. | Community
Skip to main content
harshs
Level 3
May 17, 2017
Solved

Synchronization issues using vaultfile.

  • May 17, 2017
  • 17 replies
  • 6815 views

Hello!

I am trying to create an AEM project using Maven and Eclipse and using the vault tool (command line) to syn the changes between CRXDE and Eclipse.  I am using the following article from adobe as my reference

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

I am using AEM 6.2 and Eclipse neon.3.  I have used the following maven command to build up my project which I then imported into Eclipse

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=testingproject -Dversion=1.0-SNAPSHOT -Dpackage=com.aem.community -DappsFolderName=testingproject -DartifactName="Testing Project" -DcqVersion="6.2" -DpackageGroup="My Company"

Problem Statement:

While syncing the changes from CRXDE to Eclipse the folder structure get distorted.  Please refer to the snapshot for details.

I am firing the following command in to get the changes reflected in Eclipse from CRXDE. The changes are seen however the folder structure is distored.  What am I doing wrong here ?

vlt --credentials admin:admin co --force http://localhost:4502/crx/-/jcr:root//apps/testingproject

regards

harshs

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 harshs

Hi Veena,

This was resolved.  I used the filevault  (vault-cli-3.1.16) with AEM 6.2.  Apologies for the delay in replying to you.  Thanks for your assitance.

Regards

Harsh

17 replies

Adobe Employee
May 19, 2017

It seems that project is created ( as seen in project explorer ) but Server is not getting created.

1/ Make sure your AEM instance is up and running.

2/ Create a AEM runtime server in eclipse. Add your project to server and start the server.

3/ You can also go to your project in eclipse workspace and run "mvn clean install -P autoInstallPackage" to deploy your project.

harshs
harshsAuthor
Level 3
May 20, 2017

Hi Abhishek,

Thanks for getting back and appreciate your assistance.  See the comments inline.

1/ Make sure your AEM instance is up and running.

<Yes it is up and running>

2/ Create a AEM runtime server in eclipse. Add your project to server and start the server.

<Unable to configure it on port 4502 by default it is taking 8080. I have attached the screen shots of all the steps that I am taking to create this.  I hope I am doing it the right way>

3/ You can also go to your project in eclipse workspace and run "mvn clean install -P autoInstallPackage" to deploy your project.

<Is it possible only to push the changes made in eclipse into AEM rather the pushing the entire project ? I reckon the mvn clean install  -P autoInstallPackage will push the entire project>

I also tried with AEM 6.1 and eclipse Mars (going one step down with both AEM and eclipse) however I am seeing the same error.

Regards

Harsh

VeenaVikraman
Community Advisor
Community Advisor
July 6, 2017

Hi harshs

    Did you get a solution for this problem. PFB my comments for using vault with eclipse. Tried and tested

1. Version - Vault any version higher than 2.4 is not compatible with eclipse . So make sure to use one which is 2.4 .

2. To work in eclipse - Make sure you have installed Eclipse Style Plugin (remove the vault plugin and start from scratch)

I followed http://www.aemcq5tutorials.com/tutorials/configure-filevault-vlt-tool-in-cq/  to configure my vault long back. Hope this helps

PS:- My eclipse is Mars. (high time for an upgrade ) and I work with AEM 6.0 (almost done with ) , 6.2 and 6.3 as and wen needed

Thanks

Veena

harshs
harshsAuthorAccepted solution
Level 3
July 7, 2017

Hi Veena,

This was resolved.  I used the filevault  (vault-cli-3.1.16) with AEM 6.2.  Apologies for the delay in replying to you.  Thanks for your assitance.

Regards

Harsh

harshs
harshsAuthor
Level 3
July 7, 2017

Eclipse Neon .3 (forgot to mention) in the preivoous thread

Regards

Harsh

VeenaVikraman
Community Advisor
Community Advisor
July 7, 2017

Thats great. Higher versions of Vault had caused issues for me while working with 6.0 , so never dared to upgrade it will give it a try for sure.   Where you needed to do anything additional ? if anything specific we have to take care while setting up this in eclipse like "Eclipse Style Plugin" kind, please let us know. It might help others who have a similar request

harshs
harshsAuthor
Level 3
July 11, 2017

Hello Veena,

There is nothing additional that needs to be done.  Setup environment variables for the filevault.  The only thing that's a little bit of an issue is that creating a new file in eclipse and then trying to checkin into CRX is not working.  However this is easily got around by creating a new file in CRX and then syncing it in eclipse using filevault.  The regular updates in existing files works both ways.  Hope this helps

Regards
Harsh