<filter> <mode>update</mode> <root>/apps/myproject</root> <excludes> <exclude>/apps/myproject/components/compC(/.*)?</exclude> </excludes> </filter>But it does not work, after package installation compC also gets installed. Please let me know if what is missing here.
According to the docs here: https://docs.adobe.com/docs/en/cq/5-6-1/administering/package_manager.html#Package%20Settings, this setting should work. If that is not the case, please file a ticket so supprt team is aware of issue.
Did you ever get an answer back on this issue. I am facing the exact same issue as you, where excludes are not being picked up.
I have pasted a snippet from our pom.xml. I want my /apps/my-project folder to be updated but not its 2 subfolders that I have metioned in the excludes.
<group>Some Package NAme</group>
Recently we faced similar issue with our implementation.
After lot of analysis and search we did following which did the trick:
- In pom.xml we added exclude statement
- In filters we added exclude statement
<exclude pattern="/apps/myapp/i18n" />
This did the trick. All nodes under node /apps/myapp/i18n got excluded.
i hope this info will be helpful for folks searching for a solution
If any one want to include content.xml on a node and exclude rest of sub nodes Do it like this.