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

发布时间:2020-08-06 15:44:36 作者:故新
来源:网络 阅读:11835

参考文章:

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:

 


推荐阅读:
  1. 1.1编程基础之输入输出_01:Hello, World!
  2. qt5相关小问题解决

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

assembly sbt marathon

上一篇:复习UNIX/linux文件系统目录权限的相关知识

下一篇:算法及shell脚本编程基础

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》