我想添加play-json
依賴到一個sbt項目。如何將play-json依賴項添加到項目中?
我添加類型安全的存儲庫中project/plugins.sbt
:
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
然後我說在Build.scala
play-json
依賴如下:
libraryDependencies += "com.typesafe.play" % "play-json_2.10" % "2.2.1"
有了這個,我如下遇到錯誤:
[warn] module not found: com.typesafe.play#play-json_2.10;2.2.1
[warn] ==== local: tried
[warn] /home/tminglei/.ivy2/local/com.typesafe.play/play-json_2.10/2.2.1/ivys/ivy.xml
[warn] ==== sonatype-snapshots: tried
[warn] https://oss.sonatype.org/content/repositories/snapshots/com/typesafe/play/play-json_2.10/2.2.1/play-json_2.10-2.2.1.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/play/play-json_2.10/2.2.1/play-json_2.10-2.2.1.pom
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.play#play-json_2.10;2.2.1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
如何整理出來?
文件'plugins.sbt'在哪裏? –
這是它的路徑:/[project_root]/project/plugins.sbt – tminglei