Running "mvn clean install -PautoInstallSinglePackage" removes changes made to aem from localhost | Community
Skip to main content
Level 2
November 11, 2022
Solved

Running "mvn clean install -PautoInstallSinglePackage" removes changes made to aem from localhost

  • November 11, 2022
  • 2 replies
  • 2356 views

Hello, I work in the local aem when I create something like pages, or I drag components to an existing page and I want to execute "mvn clean install -PautoInstallSinglePackage" everything that I had created is deleted and the project is as in the beginning, I am doing this in aem -guides-wknd

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 salamswapnil

@lidermangiraldoescobar 

Please open filter.xml from ui.content.sample module and update below entry from

<filter root="/content/wknd" />

to

<filter root="/content/wknd" mode="merge"/>

and deploy the code again. After this change your code deployment won't overwrite your old changes.

filter.xml Path: aem-guides-wknd/ui.content.sample/src/main/content/META-INF/vault/filter.xml 

More details on workspace filter can be found here.

https://jackrabbit.apache.org/filevault/filter.html

 

2 replies

arunpatidar
Community Advisor
Community Advisor
November 11, 2022

Hi,

Please check the filter mode filter.xml in your project module's.

https://jackrabbit.apache.org/filevault/filter.html#filter-elements 

 

The package content can replace existing content if no filter mode is defined.

Arun Patidar
Level 2
November 11, 2022

I have the project the same as when I download it from the github repository, that is, I have not modified any of the configurations

salamswapnilCommunity AdvisorAccepted solution
Community Advisor
November 11, 2022

@lidermangiraldoescobar 

Please open filter.xml from ui.content.sample module and update below entry from

<filter root="/content/wknd" />

to

<filter root="/content/wknd" mode="merge"/>

and deploy the code again. After this change your code deployment won't overwrite your old changes.

filter.xml Path: aem-guides-wknd/ui.content.sample/src/main/content/META-INF/vault/filter.xml 

More details on workspace filter can be found here.

https://jackrabbit.apache.org/filevault/filter.html