Content Project how to stop it overwriting content? | Community
Skip to main content
Level 4
June 2, 2016
Solved

Content Project how to stop it overwriting content?

  • June 2, 2016
  • 4 replies
  • 2346 views

I'm starting an AEM project from scratch which is new for me and I'm wondering how to stop all my content being wiped everytime I run mvn -PautoInstallPackage install as the content package is being installed and wiping out everything below mysite/en/.. 

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 ogill

Sutty100 wrote...

I'm starting an AEM project from scratch which is new for me and I'm wondering how to stop all my content being wiped everytime I run mvn -PautoInstallPackage install as the content package is being installed and wiping out everything below mysite/en/.. 

 

Hi,

typically you would include "/content" in a separate project and use it to bootstrap your content on a fresh instance. Or you would use it to create sample pages that are basically never changed once deployed. If you do manually change anything, it would be a new page. You could then try and redeploy your content package with the merge option.

Regards,

Opkar

4 replies

Illia_Kononov
Level 2
June 2, 2016

Hi,

Could you please find filter.xml file in your content project and share (Structure should be ../META-INF/vault/filter.xml)?

Most probable that you have replace mode on /content/mysite folder. It it is true, try to remove this line.

You can find more details about vault filter here

Thanks,

Illia

smacdonald2008
Level 10
June 2, 2016

If you are just building OSGi bundles - run mvn clean install., Then manually deploy the bundle (you need to delete the old bundle too). This will not wipe out any other content. 

ogillAdobe EmployeeAccepted solution
Adobe Employee
June 2, 2016

Sutty100 wrote...

I'm starting an AEM project from scratch which is new for me and I'm wondering how to stop all my content being wiped everytime I run mvn -PautoInstallPackage install as the content package is being installed and wiping out everything below mysite/en/.. 

 

Hi,

typically you would include "/content" in a separate project and use it to bootstrap your content on a fresh instance. Or you would use it to create sample pages that are basically never changed once deployed. If you do manually change anything, it would be a new page. You could then try and redeploy your content package with the merge option.

Regards,

Opkar

Sutty100Author
Level 4
June 3, 2016

Thanks, added merge and that solved my problem!