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

smacdonald2008
Level 10
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. 

smacdonald2008
Level 10
May 17, 2017

If you are using AEM 6.3 - see this artilce: 

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

MC_Stuff
Level 10
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,

harshs
harshsAuthor
Level 3
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

harshs
harshsAuthor
Level 3
May 18, 2017

Unfortunately I don't have AEM 6.3

harshs
harshsAuthor
Level 3
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

Adobe 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
Level 3
May 18, 2017

Hi Abhishek,

Not sure if I am doing the right thing.  However the import from server isn't working either.  Please refer to the snapshot for the error details. I tried vaultclipse too but no luck.  Will moving to a lower version of eclipse and AEM help.  I reckon with Neon.3 the plugins are not working as expected.

 

Regards

Harsh

Adobe Employee
May 18, 2017

1/ Do you have a server runtime created in eclipse which points to your AEM host:port ?

2/ If yes , can you push code ( Export to Server )  from Eclipse to CRXDe ? 

3/ You can refer following kb for basics, however it doesn't mention import from crxde.

https://docs.adobe.com/docs/en/dev-tools/aem-eclipse.html#Sample%20Multi-Module%20Project

harshs
harshsAuthor
Level 3
May 19, 2017

Hi Abhishek,

Unable to create the startup project using eclipse plugin.  Error is attached.  I even tried with archetype 10 (by default the archetype is 11) but the same error.

 

regards

Harsh