sbt 未解决的依赖项 sbt_2.9.1;0.7.4 sbt_2.9.1;0.7.7: [英] sbt unresolved dependencies sbt_2.9.1;0.7.4 sbt_2.9.1;0.7.7:

查看:36
本文介绍了sbt 未解决的依赖项 sbt_2.9.1;0.7.4 sbt_2.9.1;0.7.7:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此处遇到了未解决的依赖项.

I was getting the unresolved dependencies like the question here.

正在获取 org.scala-tools.sbt sbt_2.9.1 0.7.7 ...

Getting org.scala-tools.sbt sbt_2.9.1 0.7.7 ...

    ::::::::::::::::::::::::::::::::::::::::::::::

    ::          UNRESOLVED DEPENDENCIES         ::

    ::::::::::::::::::::::::::::::::::::::::::::::

    :: org.scala-tools.sbt#sbt_2.9.1;0.7.7: not found

    ::::::::::::::::::::::::::::::::::::::::::::::

推荐答案

SBT 0.7.7 使用 Scala 2.7.7 进行项目配置.SBT 0.11 使用 Scala 2.9.1.您可以将 SBT 0.7.7 用于该版本之前的配置,但高于 0.7.7 的 SBT 版本使用不兼容的配置文件.

SBT 0.7.7 uses Scala 2.7.7 for the project configuration. SBT 0.11 uses Scala 2.9.1. You can use SBT 0.7.7 for configurations up to that version, but versions of SBT newer than 0.7.7 use a non-compatible configuration file.

请注意,这与将用于编译项目本身的 Scala 版本无关,仅与用于编译配置文件的 Scala 版本有关.它们是不同的东西:您可以使用任何版本的 Scala 来编译您的项目,但您必须使用 SBT 版本规定的 Scala 版本来编译项目配置.

Note that this is not related to the Scala version that will be used to compile the project itself, just the Scala version that is used to compile the configuration file. These are different things: you can use whatever version of Scala you want to compile your project, but you must use the version of Scala mandated by the SBT version to compile the project configuration.

要获得类似的错误消息,您必须更改项目配置的 Scala 版本,或者使用较新的 SBT 以及为旧版本 SBT 编写的项目.找出问题所在,并根据需要纠正问题.

To get an error message like that you must either have changed the Scala version for the project configuration, or used a newer SBT with a project written for an older version of SBT. Find out which it was, and correct the problem as needed.

我有一个 SBT 0.7.7 用于尚未迁移到新版本的项目,还有最新的 SBT 用于其他所有项目.为每个脚本添加不同的名称,您就可以开始了.

I have an SBT 0.7.7 for projects that have not yet migrated to the new version, and the latest SBT for everything else. Put a different name on each script, and you are good to go.

这篇关于sbt 未解决的依赖项 sbt_2.9.1;0.7.4 sbt_2.9.1;0.7.7:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆