maven-shade-plugin 使用记录
作者:
三云_16d2 | 来源:发表于
2018-10-23 16:25 被阅读0次 <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createSourcesJar>true</createSourcesJar>
<artifactSet>
<includes>
<include>com.apache:kafka-http-client</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>com.apache.common.kafka</pattern>
<shadedPattern>com.apache.middleware.transsonic.kafka</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
本文标题:maven-shade-plugin 使用记录
本文链接:https://www.haomeiwen.com/subject/ukyazftx.html
网友评论