Skip to content

Commit 8b2b8f5

Browse files
authored
Spark connector pom fixes (#8810)
1 parent 07b3ee6 commit 8b2b8f5

File tree

1 file changed

+42
-22
lines changed
  • pinot-connectors/pinot-spark-connector

1 file changed

+42
-22
lines changed

pinot-connectors/pinot-spark-connector/pom.xml

Lines changed: 42 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<jackson.module.scala.version>2.10.0</jackson.module.scala.version>
4040
<scalaxml.version>1.3.0</scalaxml.version>
4141
<scalatest.version>3.1.1</scalatest.version>
42+
<shadeBase>org.apache.pinot.\$internal</shadeBase>
4243

4344
<!-- TODO: delete this prop once all the checkstyle warnings are fixed -->
4445
<checkstyle.fail.on.violation>false</checkstyle.fail.on.violation>
@@ -140,19 +141,6 @@
140141
</exclusion>
141142
</exclusions>
142143
</dependency>
143-
<dependency>
144-
<groupId>io.grpc</groupId>
145-
<artifactId>grpc-netty-shaded</artifactId>
146-
<scope>runtime</scope>
147-
</dependency>
148-
<dependency>
149-
<groupId>io.grpc</groupId>
150-
<artifactId>grpc-protobuf</artifactId>
151-
</dependency>
152-
<dependency>
153-
<groupId>io.grpc</groupId>
154-
<artifactId>grpc-stub</artifactId>
155-
</dependency>
156144
<dependency>
157145
<groupId>org.scala-lang</groupId>
158146
<artifactId>scala-library</artifactId>
@@ -199,19 +187,25 @@
199187
</executions>
200188
</plugin>
201189
<plugin>
202-
<artifactId>maven-assembly-plugin</artifactId>
203-
<configuration>
204-
<descriptorRefs>
205-
<descriptorRef>jar-with-dependencies</descriptorRef>
206-
</descriptorRefs>
207-
</configuration>
190+
<artifactId>maven-shade-plugin</artifactId>
208191
<executions>
209192
<execution>
210-
<id>assemble-all</id>
211193
<phase>package</phase>
212194
<goals>
213-
<goal>single</goal>
195+
<goal>shade</goal>
214196
</goals>
197+
<configuration>
198+
<relocations>
199+
<relocation>
200+
<pattern>com</pattern>
201+
<shadedPattern>${shadeBase}.com</shadedPattern>
202+
<includes>
203+
<include>com.google.protobuf.**</include>
204+
<include>com.google.common.**</include>
205+
</includes>
206+
</relocation>
207+
</relocations>
208+
</configuration>
215209
</execution>
216210
</executions>
217211
</plugin>
@@ -334,6 +328,16 @@
334328
</build>
335329

336330
<dependencies>
331+
<dependency>
332+
<groupId>org.apache.pinot</groupId>
333+
<artifactId>pinot-common</artifactId>
334+
<exclusions>
335+
<exclusion>
336+
<groupId>org.apache.zookeeper</groupId>
337+
<artifactId>zookeeper</artifactId>
338+
</exclusion>
339+
</exclusions>
340+
</dependency>
337341
<dependency>
338342
<groupId>org.apache.pinot</groupId>
339343
<artifactId>pinot-core</artifactId>
@@ -359,6 +363,22 @@
359363
<groupId>org.apache.httpcomponents</groupId>
360364
<artifactId>httpclient</artifactId>
361365
</dependency>
366+
<dependency>
367+
<groupId>org.apache.httpcomponents</groupId>
368+
<artifactId>httpcore</artifactId>
369+
</dependency>
370+
<dependency>
371+
<groupId>io.grpc</groupId>
372+
<artifactId>grpc-netty-shaded</artifactId>
373+
<scope>runtime</scope>
374+
</dependency>
375+
<dependency>
376+
<groupId>io.grpc</groupId>
377+
<artifactId>grpc-protobuf</artifactId>
378+
</dependency>
379+
<dependency>
380+
<groupId>io.grpc</groupId>
381+
<artifactId>grpc-stub</artifactId>
382+
</dependency>
362383
</dependencies>
363-
364384
</project>

0 commit comments

Comments
 (0)