Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Filter mode not working as expected in vault/content-package-maven-plugin

Avatar

Level 2

Hi all,

according to the doc, the content-package-maven-plugin has a new feature "mode" which sounds extremely helpful.

However, when I use it, it's not working as expected.

Does anybody have experience with this?

The META-INF/vault/filter.xml generated by the maven plugin looks ok:

<?xml version="1.0" encoding="UTF-8"?> <workspaceFilter version="1.0"> <filter root="/apps/dummy/dummyMerge" mode="merge"> <include pattern="/apps/dummy/dummyMerge(/.*)" /> </filter> <filter root="/apps/dummy/dummyReplace"> <include pattern="/apps/dummy/dummyReplace(/.*)" /> </filter> <filter root="/apps/dummy/dummyUpdate" mode="update"> <include pattern="/apps/dummy/dummyUpdate(/.*)" /> </filter> </workspaceFilter>

However, when installed, the following things are not the way I'd expect them:

- update and replace behave identically: when I delete a file or a property, mode "update" deltes this from the repo

- merge addes new files to the repo, but if I add a subnode or a property (e.g. in a dialog), this is not added to the repo

 

Has anyone used this successfully?

thanks,

Ben

 

btw: I'm using CQ5.6.1 with content-package-maven-plugin 0.0.20

1 Accepted Solution

Avatar

Correct answer by
Former Community Member
1 Reply

Avatar

Correct answer by
Former Community Member

I had the exact same problem, check the links on this forum post for answers!

 

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...