filter.xml ValidationViolation error.
Dear community,
I have the requirement to exclude components under one folder from the built package.
I made the following changes to filter.xml
<filter root="/apps/myapp/components">
<exclude pattern="/apps/myapp/components/macrsite(/.*)?" />
</filter>
the ui.apps.structure pom looks like this for app root
<!-- /apps root -->
<filter><root>/apps</root>/filter>
<filter><root>/apps/myapp</root>/filter>
<filter><root>/apps/myapp/components/macrsite/filter>
added below configuration in filevault-package-maven-plugin
<jackrabbit-packagetype>
<options>
<allowComplexFilterRulesInApplicationPackages>true</allowComplexFilterRulesInApplicationPackages>
</options>
</jackrabbit-packagetype>
I am still receiving errors like
ValidationViolation: "jackrabbit-filter: Node '/apps/myapp/components/macrsite/page' is not contained in any of the filter rules", filePath=jcr_root\apps\myapp\components\macrsite\page\.content.xml
ValidationViolation: "jackrabbit-filter: Node '/apps/myapp/components/macrsite/page/head.html' is not contained in any of the filter rules", filePath=jcr_root\apps\myapp\components\macrsite\page\head.html
.
.
etc
Literally the above violation error happens for everything under folder macrsite, I am using filevault-package-maven-plugin of version 1.1.6 and the AEM version in 6.5.18