Repository: maven-indexer Updated Branches: refs/heads/master e77d38862 -> 1a5d1560d
add a jar with shaded lucene to avoid version collision Signed-off-by: olivier lamy <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/maven-indexer/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-indexer/commit/7f093506 Tree: http://git-wip-us.apache.org/repos/asf/maven-indexer/tree/7f093506 Diff: http://git-wip-us.apache.org/repos/asf/maven-indexer/diff/7f093506 Branch: refs/heads/master Commit: 7f0935061f5592545f04a7d65fd4d72f0203444a Parents: e77d388 Author: olivier lamy <[email protected]> Authored: Fri Jul 7 17:20:00 2017 +1000 Committer: olivier lamy <[email protected]> Committed: Fri Jul 7 17:20:00 2017 +1000 ---------------------------------------------------------------------- indexer-core/pom.xml | 73 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/7f093506/indexer-core/pom.xml ---------------------------------------------------------------------- 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 @@ under the License. </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>
