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

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

  • November 11, 2022
  • 2 respostas
  • 2356 Visualizações

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

Este tópico foi fechado para respostas.
Melhor resposta por 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 Respostas

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 AdvisorResposta
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