小编tmi*_*lei的帖子

如何将play-json依赖项添加到项目中?

我想为play-jsonsbt项目添加依赖项.

我在project/plugins.sbt以下位置添加了Typesafe存储库:

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
Run Code Online (Sandbox Code Playgroud)

然后我添加了play-json依赖Build.scala如下:

libraryDependencies += "com.typesafe.play" % "play-json_2.10" % "2.2.1"
Run Code Online (Sandbox Code Playgroud)

有了这个,我得到如下错误:

[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]  ::::::::::::::::::::::::::::::::::::::::::::::
Run Code Online (Sandbox Code Playgroud)

如何整理出来?

sbt playframework playframework-2.0

3
推荐指数
1
解决办法
3381
查看次数

标签 统计

playframework ×1

playframework-2.0 ×1

sbt ×1