2014-12-29 51 views
1

我正在用GeoJSON編寫一個播放框架應用程序,並計劃使用play-gejson。當我按照指示將依賴項添加到build.sbt時,激活器找不到它。爲什麼sbt會因爲play-geojson而導致未解決的依賴關係失敗?

下面是它說我要補充:

"com.typesafe.play.extras" %% "play-geojson" % "1.0.0" 

任何想法是怎麼回事?

UPDATE

我也試過下面解析器添加 - 無濟於事。

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

以下是錯誤:

ecf-db| activator run 
[info] Loading project definition from /Users/michael/Documents/Consulting/sayarch/ECF/Conflict-Database/ecf-db/app/ecf-db/project 
[info] Set current project to ecf-db (in build file:/Users/michael/Documents/Consulting/sayarch/ECF/Conflict-Database/ecf-db/app/ecf-db/) 
[info] Updating {file:/Users/michael/Documents/Consulting/sayarch/ECF/Conflict-Database/ecf-db/app/ecf-db/}root... 
[info] Resolving org.scala-lang.plugins#scala-continuations-library_2.11;1.0.1 .[info] Resolving com.typesafe.play.extras#play-geojson_2.11;1.0.0 ... 
[warn] module not found: com.typesafe.play.extras#play-geojson_2.11;1.0.0 
[warn] ==== local: tried 
[warn] /Users/michael/.ivy2/local/com.typesafe.play.extras/play-geojson_2.11/1.0.0/ivys/ivy.xml 
[warn] ==== activator-local: tried 
[warn] file:/usr/local/Cellar/typesafe-activator/1.2.12/libexec/repository/com.typesafe.play.extras/play-geojson_2.11/1.0.0/ivys/ivy.xml 
[warn] ==== public: tried 
[warn] http://repo1.maven.org/maven2/com/typesafe/play/extras/play-geojson_2.11/1.0.0/play-geojson_2.11-1.0.0.pom 
[warn] ==== typesafe-releases: tried 
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/extras/play-geojson_2.11/1.0.0/play-geojson_2.11-1.0.0.pom 
[warn] ==== typesafe-ivy-releasez: tried 
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play.extras/play-geojson_2.11/1.0.0/ivys/ivy.xml 
[warn] ==== Typesafe Releases Repository: tried 
[warn] https://repo.typesafe.com/typesafe/releases/com/typesafe/play/extras/play-geojson_2.11/1.0.0/play-geojson_2.11-1.0.0.pom 
[warn] ==== Typesafe repository: tried 
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/extras/play-geojson_2.11/1.0.0/play-geojson_2.11-1.0.0.pom 
[info] Resolving jline#jline;2.11 ... 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] ::   UNRESOLVED DEPENDENCIES   :: 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] :: com.typesafe.play.extras#play-geojson_2.11;1.0.0: not found 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
sbt.ResolveException: unresolved dependency: com.typesafe.play.extras#play-geojson_2.11;1.0.0: not found 

構建文件:

name := """XXXXXXXX""" 

version := "0.1-SNAPSHOT" 

lazy val root = (project in file(".")).enablePlugins(PlayScala) 

organization := "XXXXXXXXXX" 

scalaVersion := "2.11.1" 

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

libraryDependencies ++= Seq(
    jdbc, 
    anorm, 
    cache, 
    ws, 
    "org.webjars" %% "webjars-play" % "2.3.0-2", 
    "org.webjars" % "bootstrap" % "3.1.1-2", 
    "org.webjars" % "jquery" % "2.1.3", 
    "org.webjars" % "font-awesome" % "4.2.0", 
    "com.typesafe.play.extras" %% "play-geojson" % "1.0.0" 
) 

LessKeys.compress in Assets := true 

includeFilter in (Assets, LessKeys.less) := "*.less" 

回答

1

看起來好像README尚未從最新的版本更新。 1.0.0只爲Scala 2.10而不是2.11。但1.1.0已經針對Scala 2.10和2.11進行了交叉構建。只是磕碰版本1.1.0:

"com.typesafe.play.extras" %% "play-geojson" % "1.1.0" 

(或者,如果你需要1.0.0由於某種原因,也許還可以利用斯卡拉2.10)也

+0

- 加入解析器不需要一次版本已經碰撞。 –

相關問題