Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 #1145

Open
Shiva-Poreddy opened this issue Oct 14, 2023 · 0 comments

Comments

@Shiva-Poreddy
Copy link

Shiva-Poreddy commented Oct 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant