我正在尝试安装“ 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"
,一切都会正常。