gpt4 book ai didi

sbt - 追踪关于 plugins.sbt 的 sbt 驱逐

转载 作者:行者123 更新时间:2023-12-02 08:28:40 31 4
gpt4 key购买 nike

我似乎无法找到下面看到的第一次驱逐的根本原因。如下所示,运行 evicted 不会提供与其相关的详细信息

这一切都是在添加到 project/plugins.sbt 之后发生的:libraryDependencies += "io.spray"%% "spray-json"% "1.3.1"

[warn] There may be incompatibilities among your library dependencies.
[warn] Here are some of the libraries that were evicted:
[warn] * io.spray:spray-json_2.10:1.2.6 -> 1.3.1
[warn] Run 'evicted' to see detailed eviction warnings

[projectName] $ evicted
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[warn] There may be incompatibilities among your library dependencies.
[warn] Here are some of the libraries that were evicted:
[warn] * com.googlecode.efficient-java-matrix-library:ejml:0.23 -> 0.19 (caller: edu.arizona.sista:processors:3.3, edu.stanford.nlp:stanford-corenlp:3.3.1)
[warn] * com.google.guava:guava:(15.0, 13.0.1) -> 16.0.1 (caller: org.sorm-framework:sorm:0.3.16, com.jolbox:bonecp:0.8.0.RELEASE, com.typesafe.play:play-ws_2.11:2.3.7)
[warn] * xml-apis:xml-apis:(2.0.2, 1.3.03) -> 1.4.01 (caller: xalan:xalan:2.7.0, xerces:xercesImpl:2.11.0, xom:xom:1.2.5, com.io7m.xom:xom:1.2.10)
[warn] * io.netty:netty:(3.9.2.Final, 3.6.3.Final) -> 3.9.3.Final (caller: com.ning:async-http-client:1.8.14, com.typesafe.netty:netty-http-pipelining:1.1.2, com.typesafe.play:play_2.11:2.3.7)
[success] Total time: 2 s, completed Apr 9, 2015 8:04:11 PM

在运行时,我什至没有尝试使用 spray-json 就遇到了这个崩溃,所以在我的 sbt 构建中如何管理或驱逐这种依赖关系确实是不对的:

[error] (web-assets:less::jstaskJsOptions) java.lang.NoSuchMethodError: spray.json.JsArray.<init>(Lscala/collection/immutable/List;)V

首先,我的 build.sbt 中没有明确定义此依赖项的版本 1.2.6,也许那里的其他插件需要它,但是如果没有逐出细节,如何追踪它呢?我怎样才能弄清楚这次神秘驱逐的细节?

最佳答案

你可以使用

show externalDependencyClasspath

获取包含所有传递依赖项的toString 表示,但它看起来很麻烦。我建议安装 sbt-dependency-graph使 dependencyTree 任务可用的插件,它以可读的格式向您显示完整的类路径。

关于sbt - 追踪关于 plugins.sbt 的 sbt 驱逐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29544827/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com