2

我正在使用 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)
}

我应该怎么做?

谢谢。

4

1 回答 1

2

您的合并策略看起来不错,但错误消息显示sse/*:assembly. 您的合并策略是否包含在 sse 项目中?

于 2015-01-10T21:42:58.233 回答