Hi All,
I am trying to add a filter for my tags. This is my tag structure. In the below I don't want my tag1 to get included as part of build whereas I want my tag2 to be part of package.
/content/cq:tags
tag1
tag2
Now below is the filter.xml of content node
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/content/cq:tags/tag1' is not contained in any of the filter rules", filePath=jcr_root/content/_cq_tags/tag1/.content.xml
If I modify the filter.xml as shown below then the error gets resolved but my problem is I just want to exclude tag1 from build whereas I want all rest of tags to be included as part of feature development.
Please suggest.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hello @Ganthimathi_R,
I believe you are using the updated AEM archetype, there (pom.xml under ui.apps.structure module) you have the option to put the list of valid roots (JCR Paths) that you want to work on as following:
<build>
<plugins>
<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>maven-jackrabbit-filevault-plugin</artifactId>
<version><!-- Specify the version --></version>
<configuration>
<properties>
<cloudManagerTarget>none</cloudManagerTarget>
</properties>
<filters>
<filter><root>/apps/${project-name}</root></filter>
<filter><root>/content/cq:tags/tag1</root></filter>
<filter><root>....</root></filter>
</filters>
</configuration>
</plugin>
</plugins>
</build>
please consider additing the root in the list above, that you want to include from filter.xml..
Hello @Ganthimathi_R,
I believe you are using the updated AEM archetype, there (pom.xml under ui.apps.structure module) you have the option to put the list of valid roots (JCR Paths) that you want to work on as following:
<build>
<plugins>
<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>maven-jackrabbit-filevault-plugin</artifactId>
<version><!-- Specify the version --></version>
<configuration>
<properties>
<cloudManagerTarget>none</cloudManagerTarget>
</properties>
<filters>
<filter><root>/apps/${project-name}</root></filter>
<filter><root>/content/cq:tags/tag1</root></filter>
<filter><root>....</root></filter>
</filters>
</configuration>
</plugin>
</plugins>
</build>
please consider additing the root in the list above, that you want to include from filter.xml..
@Ganthimathi_R Did you find the suggestion from @A_H_M_Imrul 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.
Hello @Ganthimathi_R
"jackrabbit-filter: Node '/content/cq:tags/tag1' is not contained in any of the filter rules"
We just need to affirm via ui.apps.structure module, that the node is present in CRX. Thus, validator can skip this check.
<filter><root>/content/cq:tags/tag1</root></filter>
In your base, you are trying to exclude (which can be confusing), but validator is checking for all configured paths.
Please append the config and check, if it resolves the issue.
did this solution work for you? what was file vault plugin version you have used, I am on the same boat any info will be very useful. @Ganthimathi_R
Thanks
Views
Likes
Replies
Views
Likes
Replies
Views
Like
Replies