我想添加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