You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2017/07/07 07:20:25 UTC
maven-indexer git commit: add a jar with shaded lucene to avoid
version collision
Repository: maven-indexer
Updated Branches:
refs/heads/feature/jar_shaded_lucene [created] 7f0935061
add a jar with shaded lucene to avoid version collision
Signed-off-by: olivier lamy <ol...@apache.org>
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/feature/jar_shaded_lucene
Commit: 7f0935061f5592545f04a7d65fd4d72f0203444a
Parents: e77d388
Author: olivier lamy <ol...@apache.org>
Authored: Fri Jul 7 17:20:00 2017 +1000
Committer: olivier lamy <ol...@apache.org>
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>