sbt assembly编译打包时报: deduplicate: different file contents found in the following:
admin
2023-03-16 22:21:10
0

参考文章:

http://blog.csdn.net/oopsoom/article/details/41318599

sbt  assembly编译打包时报: deduplicate: different file contents found in the following:

[error] (marathon/*:assembly) deduplicate:different file contents found in the following:

[error] META-INF/aop.xml

[error]/root/.coursier/cache/v1/https/repo1.maven.org/maven2/io/kamon/kamon-core_2.11/0.6.7/kamon-core_2.11-0.6.7.jar:META-INF/aop.xml

[error]/root/.coursier/cache/v1/https/repo1.maven.org/maven2/io/kamon/kamon-scala_2.11/0.6.7/kamon-scala_2.11-0.6.7.jar:META-INF/aop.xml

[error] deduplicate: different filecontents found in the following:

[error]/root/.coursier/cache/v1/https/repo1.maven.org/maven2/io/netty/netty-handler/4.0.43.Final/netty-handler-4.0.43.Final.jar:META-INF/io.netty.versions.properties

[error]/root/.coursier/cache/v1/https/repo1.maven.org/maven2/io/netty/netty-common/4.0.43.Final/netty-common-4.0.43.Final.jar:META-INF/io.netty.versions.properties

[error]/root/.coursier/cache/v1/https/repo1.maven.org/maven2/io/netty/netty-buffer/4.0.43.Final/netty-buffer-4.0.43.Final.jar:META-INF/io.netty.versions.properties

[error]/root/.coursier/cache/v1/https/repo1.maven.org/maven2/io/netty/netty-codec-http/4.0.43.Final/netty-codec-http-4.0.43.Final.jar:META-INF/io.netty.versions.properties

[error]/root/.coursier/cache/v1/https/repo1.maven.org/maven2/io/netty/netty-transport/4.0.43.Final/netty-transport-4.0.43.Final.jar:META-INF/io.netty.versions.properties

[error]/root/.coursier/cache/v1/https/repo1.maven.org/maven2/io/netty/netty-codec/4.0.43.Final/netty-codec-4.0.43.Final.jar:META-INF/io.netty.versions.properties


红色部分是冲突文件


解决措施:

    在marathon源码的根目录下

    在build.sbt文件或者assembly.sbt文件里添加以下内容:

sbt  assembly编译打包时报: deduplicate: different file contents found in the following:

    根据上面报的异常,因此,这里添加了两项内容。

    然后,重新运行

#sbt clean compile assembly

在运行过程中,会抛一个警告:

sbt  assembly编译打包时报: deduplicate: different file contents found in the following:

不建议使用mergeStrategy关键字了

最终打包成功:

sbt  assembly编译打包时报: deduplicate: different file contents found in the following:

 


相关内容

热门资讯

终于明白“冷酷炸金花.究竟有挂... 有 亲,根据资深记者爆料冷酷炸金花是可以开挂的,确实有挂(咨询软件无需打...
【第一消息】“喜扣游戏.怎么开... 【第一消息】“喜扣游戏.怎么开挂?”透视曝光猫腻您好,喜扣游戏这个游戏其实有挂的,确实是有挂的,需要...
【第一资讯】“西兵互娱.是不是... 您好:西兵互娱这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这款游戏...
玩家攻略科普“冷酷牛牛.真的有... 玩家攻略科普“冷酷牛牛.真的有挂吗?”透视曝光猫腻您好,冷酷牛牛这个游戏其实有挂的,确实是有挂的,需...
玩家最新攻略“蜀友汇.有没有挂... 家人们!今天小编来为大家解答蜀友汇透视挂怎么安装这个问题咨询软件客服徽9752949的挂在哪里买很多...
小红书、微博狂晒征信,到底哪些... 作者:杜川央行一次性个人信用修复政策落地后,社交平台迅速掀起讨论热潮。近两日,在小红书、微博上,大量...
终于明白“荊州晃晃麻将.辅助开... 网上科普关于“荊州晃晃麻将有没有挂”话题很是火热,小编也是针对荊州晃晃麻将作*弊开挂的方法以及开挂对...
强生爽身粉致癌案被判赔女子11... 快科技12月24日消息,央视财经报道,当地时间22日,美国马里兰州一陪审团裁定,强生公司需向一名因使...
玩家最新攻略“荊州晃晃麻将.开... 玩家最新攻略“荊州晃晃麻将.开挂器?”原来真的有挂您好,荊州晃晃麻将这个游戏其实有挂的,确实是有挂的...
最新引进“蜀山四川麻将.怎么开... 有 亲,根据资深记者爆料蜀山四川麻将是可以开挂的,确实有挂(咨询软件无需...