You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by jl...@apache.org on 2021/03/19 22:47:58 UTC
[incubator-pinot] branch master updated: Create shaded jar for
pinot-core module (#6697)
This is an automated email from the ASF dual-hosted git repository.
jlli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 3c055f3 Create shaded jar for pinot-core module (#6697)
3c055f3 is described below
commit 3c055f318f8faf0d56c32cfe6cc11e0dd4e9470d
Author: Jialiang Li <jl...@linkedin.com>
AuthorDate: Fri Mar 19 15:47:42 2021 -0700
Create shaded jar for pinot-core module (#6697)
Co-authored-by: Jack Li(Analytics Engineering) <jl...@jlli-mn1.linkedin.biz>
---
pinot-common/pom.xml | 4 ++++
pinot-core/pom.xml | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/pinot-common/pom.xml b/pinot-common/pom.xml
index a8b8a3d..afe3821 100644
--- a/pinot-common/pom.xml
+++ b/pinot-common/pom.xml
@@ -301,6 +301,10 @@
<configuration>
<relocations>
<relocation>
+ <pattern>com.google.common.base</pattern>
+ <shadedPattern>shaded.com.google.common.base</shadedPattern>
+ </relocation>
+ <relocation>
<pattern>org.apache.http</pattern>
<shadedPattern>shaded.org.apache.http</shadedPattern>
</relocation>
diff --git a/pinot-core/pom.xml b/pinot-core/pom.xml
index c381db2..2a72e6d 100644
--- a/pinot-core/pom.xml
+++ b/pinot-core/pom.xml
@@ -240,4 +240,39 @@
<version>${lucene.version}</version>
</dependency>
</dependencies>
+ <profiles>
+ <profile>
+ <id>build-shaded-jar</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <relocations>
+ <relocation>
+ <pattern>com.google.common.base</pattern>
+ <shadedPattern>shaded.com.google.common.base</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.apache.http</pattern>
+ <shadedPattern>shaded.org.apache.http</shadedPattern>
+ </relocation>
+ </relocations>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org