SBT无法解决sbt-echo-play

时间:2014-05-23 10:16:09

标签: scala playframework sbt typesafe-stack typesafe-activator

我试图在生产模式下部署我的播放应用。存在未解决的依赖性错误。

[info] Resolving com.typesafe.sbt#sbt-echo-play;0.1.1 ...
[warn]  module not found: com.typesafe.sbt#sbt-echo-play;0.1.1
[warn] ==== local: tried
[warn]   /home/d.mikhaylov/.ivy2/local/com.typesafe.sbt/sbt-echo-play/scala_2.10/sbt_0.13/0.1.1/ivys/ivy.xml
[warn] ==== activator-local: tried
[warn]   file:/var/home/d.mikhaylov/server/repository/com.typesafe.sbt/sbt-echo-play/scala_2.10/sbt_0.13/0.1.1/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/typesafe/sbt/sbt-echo-play_2.10_0.13/0.1.1/sbt-echo-play-0.1.1.pom
[warn] ==== typesafe-releases: tried
[warn]   http://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/sbt-echo-play_2.10_0.13/0.1.1/sbt-echo-play-0.1.1.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-echo-play/scala_2.10/sbt_0.13/0.1.1/ivys/ivy.xml
[warn] ==== Artifactory: tried
[warn]   http://scalasbt.artifactoryonline.com/scalasbt/repo/com/typesafe/sbt/sbt-echo-play_2.10_0.13/0.1.1/sbt-echo-play-0.1.1.pom
[warn] ==== Typesafe Releases Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/sbt-echo-play_2.10_0.13/0.1.1/sbt-echo-play-0.1.1.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.sbt#sbt-echo-play;0.1.1: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      com.typesafe.sbt:sbt-echo-play:0.1.1 (sbtVersion=0.13, scalaVersion=2.10)
[warn] 

可能是什么问题?

1 个答案:

答案 0 :(得分:1)

将此添加到plugins.sbt:

resolvers ++= Seq(
  "typesafe" at "http://repo.typesafe.com/typesafe/releases",
  Resolver.url("scala sbt",  url("http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns),
  Resolver.url("typesafe ivy",  url("http://repo.typesafe.com/typesafe/ivy-releases"))(Resolver.ivyStylePatterns)
)