adobe / adobe/aem-project-archetype

[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

Open
#1,145 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
596
Forks
431
Avg merge
10d 6h
Merged PRs (30d)
1

Description

### 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
`

`
and in the pom.xml of ui.apps module added below configuration for filevault-package-maven-plugin
`


true


`

and ui.app.structure module's pom.xml configure the below roots
`/apps
/apps/mysite
/apps/mysite/components`

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

Contributor guide

Open the contributing guide

Research direction

Start with ui.apps/src/main/content/META-INF/vault/filter.xml and the ui.apps and ui.apps.structure pom.xml configurations described in the report. Run the filevault-package-maven-plugin validate-package goal against the sample exclusion and structure filters. Done means the excluded form content no longer produces filter or node-type validation violations and the package build succeeds.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.