类冲突问题

2020-06-16  本文已影响0人  冰__羽

类冲突问题
解决方式就是将冲突的包shade掉(将类的全路径名改掉,避免跟blink的依赖冲突)。具体配置方式如下:

在maven插件配置里添加
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>

<relocation>
<pattern>com.xxx.xxx.xxx</pattern>
<shadedPattern>com.yyy.yyy.yyy</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>

上一篇 下一篇

猜你喜欢

热点阅读