[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/container/cq:editConfig' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\container\_cq_editConfig.xml
Opened this issue · 0 comments
Expected Behaviour
The package should have build with the excluded contents
Actual Behaviour
[INFO] Start validating package 'target\mysite.ui.apps-1.0.0-SNAPSHOT.zip'...
[INFO] Register node types from tccl:aem.cnd
[INFO] Using 10 validators for package of type APPLICATION: jackrabbit-accesscontrol (org.apache.jackrabbit.vault.validation.spi.impl.AccessControlValidator), jackrabbit-filter (org.apache.jackrabbit.vault.validation.spi.impl.AdvancedFilterValidator), jackrabbit-properties (org.apache.jackrabbit.vault.validation.spi.impl.AdvancedPropertiesValidator), jackrabbit-docviewparser (org.apache.jackrabbit.vault.validation.spi.impl.DocumentViewParserValidator), jackrabbit-dependencies (org.apache.jackrabbit.vault.validation.spi.impl.DependencyValidator), jackrabbit-emptyelements (org.apache.jackrabbit.vault.validation.spi.impl.EmptyElementsValidator), jackrabbit-mergelimitations (org.apache.jackrabbit.vault.validation.spi.impl.MergeLimitationsValidator), jackrabbit-oakindex (org.apache.jackrabbit.vault.validation.spi.impl.OakIndexDefinitionValidator), jackrabbit-packagetype (org.apache.jackrabbit.vault.validation.spi.impl.PackageTypeValidator), jackrabbit-nodetypes (org.apache.jackrabbit.vault.validation.spi.impl.nodetype.NodeTypeValidator)
[ERROR] ValidationViolation: "jackrabbit-filter: Filter root's ancestor '/apps/mysite' is not covered by any of the specified dependencies nor a valid root.", filePath=META-INF\vault\filter.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/button' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\button.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/container' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\container.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/container/new' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\container\new.content.xml
[ERROR] ValidationViolation: "jackrabbit-nodetypes: Property 'cq:inherit' [Boolean] is not allowed in node with potential default types [nt:folder]: No applicable property definition found for name and type!", filePath=jcr_root\apps\mysite\components\form\container_cq_editConfig.xml, nodePath=/apps/mysite/components/form/container/cq:editConfig, line=4, column=38
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/container/cq:editConfig' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\container_cq_editConfig.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/hidden' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\hidden.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/options' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\options.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/text' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\text.content.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.196 s
[INFO] Finished at: 2023-10-14T13:29:28-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.1.6:validate-package (default-validate-package) on project mysite.ui.apps: Found 9 violation(s) (with severity=ERROR). Check above errors for details -> [Help 1]
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Modify the filter.xml module for ui.apps for excluding /apps/mysite/components/form(/.*)? as shown below
<filter root="/apps/mysite/components" > <exclude pattern="/apps/mysite/components/form(/.*)?"/> </filter>
and in the pom.xml of ui.apps module added below configuration for filevault-package-maven-plugin
<validatorsSettings> <jackrabbit-packagetype> <options> <allowComplexFilterRulesInApplicationPackages>true</allowComplexFilterRulesInApplicationPackages> </options> </jackrabbit-packagetype> </validatorsSettings>
and ui.app.structure module's pom.xml configure the below roots
<filter><root>/apps</root></filter> <filter><root>/apps/mysite</root></filter> <filter><root>/apps/mysite/components</root></filter>
Platform and Version
AEM version 6.5.18 anf FileVault version 1.1.6
Sample Code that illustrates the problem
Already given in the above steps.
Logs taken while reproducing problem
[INFO]
[INFO] --- filevault-package-maven-plugin:1.1.6:package (default-package) @ mysite.ui.apps ---
[INFO] Using META-INF/vault from C:\aem-onprem\code\mysite\ui.apps\src\main\content\META-INF\vault
[INFO] Packaging content from 'src\main\content\jcr_root'
[INFO] Building content-package: C:\aem-onprem\code\mysite\ui.apps\target\mysite.ui.apps-1.0.0-SNAPSHOT.zip
[INFO]
[INFO] --- filevault-package-maven-plugin:1.1.6:validate-package (default-validate-package) @ mysite.ui.apps ---
[INFO] Start validating package 'target\mysite.ui.apps-1.0.0-SNAPSHOT.zip'...
[INFO] Register node types from tccl:aem.cnd
[INFO] Using 10 validators for package of type APPLICATION: jackrabbit-accesscontrol (org.apache.jackrabbit.vault.validation.spi.impl.AccessControlValidator), jackrabbit-filter (org.apache.jackrabbit.vault.validation.spi.impl.AdvancedFilterValidator), jackrabbit-properties (org.apache.jackrabbit.vault.validation.spi.impl.AdvancedPropertiesValidator), jackrabbit-docviewparser (org.apache.jackrabbit.vault.validation.spi.impl.DocumentViewParserValidator), jackrabbit-dependencies (org.apache.jackrabbit.vault.validation.spi.impl.DependencyValidator), jackrabbit-emptyelements (org.apache.jackrabbit.vault.validation.spi.impl.EmptyElementsValidator), jackrabbit-mergelimitations (org.apache.jackrabbit.vault.validation.spi.impl.MergeLimitationsValidator), jackrabbit-oakindex (org.apache.jackrabbit.vault.validation.spi.impl.OakIndexDefinitionValidator), jackrabbit-packagetype (org.apache.jackrabbit.vault.validation.spi.impl.PackageTypeValidator), jackrabbit-nodetypes (org.apache.jackrabbit.vault.validation.spi.impl.nodetype.NodeTypeValidator)
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/button' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\button.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/container' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\container.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/container/new' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\container\new.content.xml
[ERROR] ValidationViolation: "jackrabbit-nodetypes: Property 'cq:inherit' [Boolean] is not allowed in node with potential default types [nt:folder]: No applicable property definition found for name and type!", filePath=jcr_root\apps\mysite\components\form\container_cq_editConfig.xml, nodePath=/apps/mysite/components/form/container/cq:editConfig, line=4, column=38
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/container/cq:editConfig' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\container_cq_editConfig.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/hidden' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\hidden.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/options' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\options.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/apps/mysite/components/form/text' is not contained in any of the filter rules", filePath=jcr_root\apps\mysite\components\form\text.content.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.327 s
[INFO] Finished at: 2023-10-14T13:44:18-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.1.6:validate-package (default-validate-package) on project mysite.ui.apps: Found 8 violation(s) (with severity=ERROR). Check above errors for details -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException