Skip to content

Commit c286d12

Browse files
authored
Shade Protobuf to prevent conflicts with Spark (#1430) (#1437)
* shade protobuf * fix
1 parent 0534dca commit c286d12

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

zoo/pom.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,19 @@
447447
</execlude>
448448
</excludes>
449449
</filter>
450+
<filter>
451+
<artifact>com.google.protobuf</artifact>
452+
<excludes>
453+
<exclude>META-INF/maven/com.google.protobuf/protobuf-java/*</exclude>
454+
</excludes>
455+
</filter>
450456
</filters>
457+
<relocations>
458+
<relocation>
459+
<pattern>com.google.protobuf</pattern>
460+
<shadedPattern>com.intel.analytics.zoo.shaded.protobuf</shadedPattern>
461+
</relocation>
462+
</relocations>
451463
</configuration>
452464
<executions>
453465
<execution>
@@ -457,8 +469,8 @@
457469
<artifactSet>
458470
<includes>
459471
<include>org.spark-project.spark:unused</include>
472+
<include>com.google.protobuf</include>
460473
</includes>
461-
462474
</artifactSet>
463475
</configuration>
464476
<goals>

0 commit comments

Comments
 (0)