Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 6

@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

 

View solution in original post

3 Replies

Avatar

Community Advisor

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

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

Avatar

Correct answer by
Level 6

@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