Content deleted any time deploy/build project | Community
Skip to main content
Level 2
March 2, 2023
Solved

Content deleted any time deploy/build project

  • March 2, 2023
  • 2 replies
  • 814 views

Hi all,

Everyt ime I build my test project (AEM WKND) the pages I create below

/content/wknd/language-masters/en are deleted, I also checked the file 
src/main/content/META-INF/vault/filter.xml but to me everything seems as it should, can anyone help me?

 

<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/conf/wknd" mode="merge"/>
<filter root="/content/wknd" mode="merge"/>
<filter root="/content/dam/wknd" mode="merge"/>
<filter root="/content/experience-fragments/wknd" mode="merge"/>
<filter root="/content/cq:tags/wknd" mode="merge"/>
<filter root="/content/cq:graphql" mode="merge" />
</workspaceFilter>

 

Thanking you in advance!

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 HybrisAd
I solved, I leave here the solution if it can serve
Notes

WKND Sample Content

By default, sample content from ui.content.sample will be deployed and installed along with the WKND code base. The WKND reference site is used for demo and training purposes and having a pre-built, fully authored site is useful. However, the behavior of including a full reference site (pages, images, etc...) in source control is unusual and is not recommended for a real-world implementation.

Including ui.content.sample will overwrite any authored content during each build. If you wish to disable this behavior modify the filter.xml file and update the mode=merge attribute to avoid overwriting the paths.

 

 

 

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

 

2 replies

SivakumarKanoori
Community Advisor
Community Advisor
March 2, 2023

@hybrisad 

Can you use like this 

 

<filter root="/content/wknd">

    <include pattern="/content/wknd/language-masters/en(.*)"/>

    

</filter>

Thanks,Siva
HybrisAdAuthorAccepted solution
Level 2
March 2, 2023
I solved, I leave here the solution if it can serve
Notes

WKND Sample Content

By default, sample content from ui.content.sample will be deployed and installed along with the WKND code base. The WKND reference site is used for demo and training purposes and having a pre-built, fully authored site is useful. However, the behavior of including a full reference site (pages, images, etc...) in source control is unusual and is not recommended for a real-world implementation.

Including ui.content.sample will overwrite any authored content during each build. If you wish to disable this behavior modify the filter.xml file and update the mode=merge attribute to avoid overwriting the paths.

 

 

 

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