Skip to content

Commit b597d8c

Browse files
committed
Add shade plugin
1 parent 7cd34fe commit b597d8c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,36 @@
414414
</executions>
415415
</plugin>
416416

417+
<plugin>
418+
<groupId>org.apache.maven.plugins</groupId>
419+
<artifactId>maven-shade-plugin</artifactId>
420+
<version>3.2.1</version>
421+
<configuration>
422+
<artifactSet>
423+
<includes>
424+
<include>com.google.protobuf:protobuf-java:jar:</include>
425+
</includes>
426+
</artifactSet>
427+
<relocations>
428+
<relocation>
429+
<pattern>com.google.protobuf</pattern>
430+
<shadedPattern>com.aliyun.odps.thirdparty.com.google.protobuf
431+
</shadedPattern>
432+
</relocation>
433+
</relocations>
434+
<shadedClassifierName>shaded</shadedClassifierName>
435+
<shadedArtifactAttached>true</shadedArtifactAttached>
436+
</configuration>
437+
<executions>
438+
<execution>
439+
<phase>package</phase>
440+
<goals>
441+
<goal>shade</goal>
442+
</goals>
443+
</execution>
444+
</executions>
445+
</plugin>
446+
417447
<plugin>
418448
<groupId>org.apache.maven.plugins</groupId>
419449
<artifactId>maven-gpg-plugin</artifactId>

0 commit comments

Comments
 (0)