我正在使用 sbt 0.13.7 和 sbt-assembly 0.12.0。
以下是“sbt 汇编”期间的错误消息:
[error] (sse/*:assembly) deduplicate: different file contents found in the following:
[error] /Users/arunswami/.ivy2/cache/org.apache.avro/avro-ipc/jars/avro-ipc-1.7.7-tests.jar:META-INF/maven/org.apache.avro/avro-ipc/pom.properties
[error] /Users/arunswami/.ivy2/cache/org.apache.avro/avro-ipc/jars/avro-ipc-1.7.7.jar:META-INF/maven/org.apache.avro/avro-ipc/pom.properties
这是基于https://github.com/sbt/sbt-assembly#merge-strategy上的 README 的 build.sbt 文件的相关部分:
assemblyMergeStrategy in assembly := {
case PathList(ps @ _*) if ps.last endsWith "pom.properties" =>
MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
我应该怎么做?
谢谢。