运行sbt/sbt程序集时执行重复数据消除错误

运行sbt/sbt程序集时执行重复数据消除错误,sbt,Sbt,我在执行命令sbt/sbt assembly时遇到以下错误: [error] (spark-cassandra-connector-java/*:assembly) deduplicate: different file contents found in the following: [error] /home/user/.ivy2/cache/io.netty/netty/bundles/netty-3.8.0.Final.jar:org/jboss/netty/bootstrap/Boot

我在执行命令sbt/sbt assembly时遇到以下错误:

[error] (spark-cassandra-connector-java/*:assembly) deduplicate: different file contents found in the following:
[error] /home/user/.ivy2/cache/io.netty/netty/bundles/netty-3.8.0.Final.jar:org/jboss/netty/bootstrap/Bootstrap.class
[error] /home/user/.ivy2/cache/org.jboss.netty/netty/bundles/netty-3.2.2.Final.jar:org/jboss/netty/bootstrap/Bootstrap.class

您使用的两个依赖项中的任何一个依赖项都是netty的依赖项,因此只需将netty从其中排除,如下所示

 exclude("org.jboss.netty", "netty") 
在要从中排除的依赖项前面添加上一行