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

Synchronization issues using vaultfile.

  • May 17, 2017
  • 17 replies
  • 6807 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

Employee
May 18, 2017

Hi Harsh,

I think you can also import structure directly to Eclipse by using "Import from Server"  wizard of eclipse.

Step 1.In Eclipse, Right click on parent node where you created new structure.

Step 2. Select Import from Server.

Best Regards,

Abhishek Dwevedi

harshs
harshsAuthor
New Participant
May 18, 2017

Hello MC Stuff,

Well, I did try with a single slash as well earlier it didn't work got the same result.  I did try with the command advised by you

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

The project structure is still distorted. Please refer to the snapshot attached.  Any further guidance from your side will be helpful.

regards

Harsh

harshs
harshsAuthor
New Participant
May 18, 2017

Unfortunately I don't have AEM 6.3

harshs
harshsAuthor
New Participant
May 18, 2017

Hello!

I did try using the Eclipse plugin (AEM developer tool plugin) and also tried to install the vaultclipse tool.  However I am facing the errors as depicted in the attached files.  Any suggestions from your side ?

 

regards

harshs

MC_Stuff
New Participant
May 18, 2017

Hi Harsh,

Try with & may be extra slash caused it

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

Thanks,

smacdonald2008
New Participant
May 17, 2017

If you are using AEM 6.3 - see this artilce: 

 https://helpx.adobe.com/experience-manager/using/aem_lazybones.html

smacdonald2008
New Participant
May 17, 2017

That article was written for AEM 6 when the Eclipse plug-in was not working so well. IN AEM 6.2 - try using the Eclipse plug-in.