|
@@ -230,6 +230,47 @@
|
|
|
</dependencies>
|
|
|
<build>
|
|
|
<plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-shade-plugin</artifactId>
|
|
|
+ <version>3.2.3</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>shade</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <relocations>
|
|
|
+ <relocation>
|
|
|
+ <pattern>com.google.common</pattern>
|
|
|
+ <shadedPattern>shade.com.google.common</shadedPattern>
|
|
|
+ </relocation>
|
|
|
+ </relocations>
|
|
|
+ <filters>
|
|
|
+ <filter>
|
|
|
+ <artifact>*:*</artifact>
|
|
|
+ <excludes>
|
|
|
+ <exclude>META-INF/maven/**</exclude>
|
|
|
+ <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.AppendingTransformer">
|
|
|
+ </transformer>
|
|
|
+ <transformer
|
|
|
+ implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
|
|
+ </transformer>
|
|
|
+ </transformers>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <!-- maven-assembly-plugin配置 -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|