2013-12-23 89 views
4

解決依賴我用SBT 0.13.1myProject/project/build.properties/具有sbt.version=0.13.1SBT。爲發揮SBT-插件

在我myProject/project/play.sbt

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

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

我試了很多版本,但無論我做什麼,它無法解析的依賴。我結束了這樣的錯誤:

[錯誤](*:更新)sbt.ResolveException:未解析的依賴性:播放#SBT-插件; 2.2.1:找不到

我甚至試圖把scalaVersion := "2.9.1"play.sbt要與倉庫相一致(在情況下,如果事情到此並):

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

但它不工作。

Eh。?

+0

[將項目升級到Play Framework 2.2.0版本]的可能重複(http://stackoverflow.com/questions/19045124/upgrading-project-to-version-2-2-0-of-the- play-framework) – EECOLOR

回答

0

與打首發2.2.0現在組ID com.typesafe.play所以下面應該工作:

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

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

設置項目/ plugin.sbt:

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

而且SBT的正確版本build.properties:

sbt.version=0.13.0 

Full migration guide to play 2.2

+1

非常感謝你! –