Filter mode not working as expected in vault/content-package-maven-plugin | Community
Skip to main content
Level 2
October 16, 2015
Solved

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

  • October 16, 2015
  • 1 reply
  • 3288 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.