From 51ef56ee137b6335193dd67379c4b8dfd6653311 Mon Sep 17 00:00:00 2001
From: Thomas Mortagne <thomas.mortagne@gmail.com>
Date: Mon, 26 Sep 2022 16:15:45 +0200
Subject: [PATCH] XWIKI-16192: Refactor links to support properly backlinks in
 a farm * disable solr during packager plugin execution because it does not
 seems to stop properly (not releasing the lock)

---
 .../xwiki-platform-tool-packager-plugin/pom.xml       | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/xwiki-platform-tools/xwiki-platform-tool-packager-plugin/pom.xml b/xwiki-platform-tools/xwiki-platform-tool-packager-plugin/pom.xml
index 1c32efb8130..d8598bcd40e 100644
--- a/xwiki-platform-tools/xwiki-platform-tool-packager-plugin/pom.xml
+++ b/xwiki-platform-tools/xwiki-platform-tool-packager-plugin/pom.xml
@@ -39,6 +39,17 @@
     <!-- It might be causing issue with this plugin build but not sure why and it's quite random -->
     <xwiki.spoon.skip>true</xwiki.spoon.skip>
   </properties>
+  <dependencyManagement>
+    <dependencies>
+      <!-- TODO: remove when we find a solution to Solr locking itself (the lock placed by the plugin prevent the XWiki instance from accessing the index) -->
+      <dependency>
+        <groupId>org.xwiki.platform</groupId>
+        <artifactId>xwiki-platform-search-solr-api</artifactId>
+        <!-- Not running with Solr because it causes lock problems -->
+        <scope>provided</scope>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
   <dependencies>
     <dependency>
       <groupId>org.xwiki.commons</groupId>
-- 
GitLab