【问题标题】:Conflicting cross-version suffixes in: com.twitter:util-core冲突的跨版本后缀:com.twitter:util-core
【发布时间】:2013-10-04 15:00:15
【问题描述】:

我升级到 sbt 0.13,这个问题开始出现。 我在这里找到了解释:https://groups.google.com/forum/#!topic/simple-build-tool/MoApqIwx4R0

我仍在寻找解决方案。

【问题讨论】:

    标签: scala sbt


    【解决方案1】:

    你可以通过设置忽略冲突:

    conflictWarning := ConflictWarning.disable,
    

    也许可以通过配置冲突管理器来解决冲突。 SBT 0.13 的冲突管理描述为here。如果你想要predefined conflict managers 之一,它们在 ConflictManager 对象中定义:

    object ConflictManager {
        val all = ConflictManager("all")
        val latestTime = ConflictManager("latest-time")
        val latestRevision = ConflictManager("latest-revision")
        val latestCompatible = ConflictManager("latest-compatible")
        val strict = ConflictManager("strict")
        val default = latestRevision
    }
    

    例如,要选择最新版本(按修订字符串),您可以在项目设置中添加以下内容:

    conflictManager := ConflictManager.latestRevision
    

    【讨论】:

    • 来自原始问题中的链接线程:“由于pom格式的限制,无法在正常解决阶段处理[跨版本冲突],它可以正确解决了错误,支持_2.10 变体。相反,sbt 在解决后检查并给出错误,这比在类路径上重复要好。"
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-01-15
    • 2014-08-29
    • 2013-10-27
    • 2017-02-01
    • 1970-01-01
    • 2015-02-23
    • 2013-10-15
    相关资源
    最近更新 更多