Я пытаюсь установить «swagger-play2» (https://github.com/swagger-api/swagger-play/tree/master/play-2.2/swagger-play2). Но, следуя инструкциям (предварительно созданные библиотеки), вот результат, который я получаю:
[error] (*:update) sbt.ResolveException: download failed: com.typesafe.play#sbt-link;2.2.2!sbt-link.jar(src)
[error] download failed: com.typesafe.play#sbt-link;2.2.2!sbt-link.pom
[error] download failed: com.typesafe.play#play-exceptions;2.2.2!play-exceptions.jar(src)
[error] download failed: com.typesafe.play#play-exceptions;2.2.2!play-exceptions.pom
Вотplugin.sbt
:
// Comment to get more information during initialization
logLevel := Level.Warn
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "Maven repo" at "http://repo1.maven.org/maven2"
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.2")
addSbtPlugin("com.github.play2war" % "play2-war-plugin" % "1.2-beta4")
libraryDependencies ++= Seq(
"com.wordnik" %% "swagger-play2" % "1.3.6"
)
Без "com.wordnik" %% "swagger-play2" % "1.3.6"
все работает нормально.