SBT.解决play sbt-plugin的依赖关系 [英] SBT. Resolving dependencies for play sbt-plugin

查看:111
本文介绍了SBT.解决play sbt-plugin的依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用sbt 0.13.1(myProject/project/build.properties/具有sbt.version=0.13.1)

I use sbt 0.13.1 (myProject/project/build.properties/ has sbt.version=0.13.1)

在我的myProject/project/play.sbt

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases"

addSbtPlugin("play" % "sbt-plugin" % "2.2.1")

我尝试了许多版本,但是无论我做什么,它都无法解决该依赖性.我最终遇到这样的错误:

I tried many versions, but whatever I do, It can not resolve that dependency. I end up with error like this:

[错误](*:update)sbt.ResolveException:未解决的依赖项:play#sbt-plugin; 2.2.1:找不到

我什至尝试将scalaVersion := "2.9.1"放入play.sbt以与存储库保持一致(以防万一):

I even try to put scalaVersion := "2.9.1" to play.sbt to be consistent with repositories (in case if does matter):

/typesafe/releases/play/sbt-plugin/scala_2.9.1/sbt_0.11.3/

但是它不起作用.

嗯??

推荐答案

设置项目/plugin.sbt:

Set project/plugin.sbt:

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")

在build.properties中也是sbt的正确版本:

Also the correct version of sbt in build.properties:

sbt.version=0.13.0

完整的迁移指南以播放2.2版本

这篇关于SBT.解决play sbt-plugin的依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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