add a jar with shaded lucene to avoid version collision
Signed-off-by: olivier lamy <olamy@apache.org>
diff --git a/indexer-core/pom.xml b/indexer-core/pom.xml
index 0d6e26e..d14f44b 100644
--- a/indexer-core/pom.xml
+++ b/indexer-core/pom.xml
@@ -198,6 +198,79 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <shadedClassifierName>shaded-lucene</shadedClassifierName>
+ <shadedArtifactAttached>true</shadedArtifactAttached>
+ <!--finalName>${project.build.finalName}</finalName-->
+ <createDependencyReducedPom>false</createDependencyReducedPom>
+ <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>
+ <relocations>
+ <relocation>
+ <pattern>org.apache.lucene</pattern>
+ <shadedPattern>org.apache.maven.index.shaded.lucene</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.apache.lucene.search</pattern>
+ <shadedPattern>org.apache.maven.index.shaded.lucene.search</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.tartarus</pattern>
+ <shadedPattern>org.apache.maven.index.shaded.lucene</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.bouncycastle</pattern>
+ <shadedPattern>org.apache.maven.index.shaded.lucene</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.apache.commons.compress</pattern>
+ <shadedPattern>org.apache.maven.index.shaded.lucene</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.apache.maven.model</pattern>
+ <shadedPattern>org.apache.maven.index.shaded.maven</shadedPattern>
+ </relocation>
+ </relocations>
+ <artifactSet>
+ <excludes>
+ <exclude>org.slf4j:*</exclude>
+ <exclude>com.google.*:*</exclude>
+ <exclude>javax.*:*</exclude>
+ <exclude>javax.*:*</exclude>
+ <exclude>org.eclipse.*:*</exclude>
+ <exclude>org.sonatype.*:*</exclude>
+ <exclude>org.apache.maven.archetype:*</exclude>
+ <exclude>org.apache.maven.wagon:*</exclude>
+ <exclude>org.codehaus.*:*</exclude>
+ <exclude>de.schlichtherle.truezip:*</exclude>
+ </excludes>
+ </artifactSet>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>META-INF/*.SF</exclude>
+ <exclude>META-INF/*.DSA</exclude>
+ <exclude>META-INF/*.RSA</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
+ </transformers>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>