I have the requirement to exclude components under one folder from the built package.
I made the following changes to filter.xml
<exclude pattern="/apps/myapp/components/macrsite(/.*)?" />
the ui.apps.structure pom looks like this for app root
<!-- /apps root -->
added below configuration in filevault-package-maven-plugin
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
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
Requesting you to plesae share the values that you have tried for validRoots.
Meanwhile, please add following in pom.xml of ui.apps.structure package
This is the addition
@seeker Did you find the suggestions from Aanchal helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
The validation errors are gone when I added filter root in the plugin configuration of apps module, but no luck the build is success, however package contains excluded component.