I have created custom lucene index for my website and want to make this custom lucene index part of the maven build.
I have created folder _oak_index and placed below custom index and updated my filter.xml file
But while maven build I am getting below error.
[INFO] ....\mysite\ui.apps\src\main\content\META-INF\vault\filter.xml
[ERROR] 1 error(s) detected during dependency analysis.
[ERROR] Filter root's ancestor '/oak:index' is not covered by any of the specified dependencies.
filter.xml
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/apps/mysite"/>
<filter root="/oak:index/mysiteLuceneIndex"/>
</workspaceFilter>
Solved! Go to Solution.
Views
Replies
Total Likes
Please do not include a custom index within /oak:index into your deployment package(s), because it will cause a reindex on every deployment. And this will hurt you on every deployment if your repo is exceeding a few gigabytes.
Rather use EnsureOakIndex [1] to control the deployment of new and modified index definitions.
[1] https://adobe-consulting-services.github.io/acs-aem-commons/features/ensure-oak-index/index.html
I just tried in my local repo-
with below plugin in pom.xml-
<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<allowIndexDefinitions>true</allowIndexDefinitions>
</configuration>
</plugin>
Was able to build it..
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@Ankur_KhareI agree with @Jörg_Hoh but I have created this micro site in AEM 6.5 using archtype 22 for client its having only 10 pages. So i want everything to be packaged.
Views
Replies
Total Likes
@Ankur_KhareI am getting the same error even i am using below plugin in ui.apps pom file
<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<allowIndexDefinitions>true</allowIndexDefinitions>
</configuration>
</plugin>
Views
Replies
Total Likes
Please do not include a custom index within /oak:index into your deployment package(s), because it will cause a reindex on every deployment. And this will hurt you on every deployment if your repo is exceeding a few gigabytes.
Rather use EnsureOakIndex [1] to control the deployment of new and modified index definitions.
[1] https://adobe-consulting-services.github.io/acs-aem-commons/features/ensure-oak-index/index.html
Views
Replies
Total Likes
Definitely we need to follow @Jörg_Hoh suggestion here and won't include a custom index within /oak:index into my deployment package.
I was facing same issue and able to fix this issue after adding below configuration in ui.apps/pom.xml -
<failOnDependencyErrors>false</failOnDependencyErrors>
https://stackoverflow.com/questions/51324523/content-package-plugin-fails-on-teamcity
My build is successful. Please note that , I was doing some experiment with my demo application.
Views
Likes
Replies
Views
Likes
Replies