所以我在 Scala 中使用 Play 2,设置了一些依赖项,我想我在解决 SBT 中的一个错误。其他人见过这样的吗?
我尝试按照指示在 Build.scala中添加仿冒品,因此:
val knockoff = RootProject(uri("git://github.com/tristanjuricek/knockoff.git"))
val main =
PlayProject(appName, appVersion, appDependencies, mainLang = SCALA)
.dependsOn(knockoff)
然后运行它。出于某种原因,它会寻找源代码和 javadoc jar。(为什么?)
[warn] [NOT FOUND ] com.tristanhunt#knockoff_2.9.1;0.8.0-16!knockoff_2.9.1.jar(src) (88ms)
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/tristanhunt/knockoff_2.9.1/0.8.0-16/knockoff_2.9.1-0.8.0-16-sources.jar
[warn] [NOT FOUND ] com.tristanhunt#knockoff_2.9.1;0.8.0-16!knockoff_2.9.1.jar(doc) (86ms)
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/tristanhunt/knockoff_2.9.1/0.8.0-16/knockoff_2.9.1-0.8.0-16-javadoc.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.tristanhunt#knockoff_2.9.1;0.8.0-16!knockoff_2.9.1.jar(src)
[warn] :: com.tristanhunt#knockoff_2.9.1;0.8.0-16!knockoff_2.9.1.jar(doc)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
这些丢失的罐子不应该是致命的,但它们是:
[error] {file:/home/joel/TEST2/bar/}bar/*:update: sbt.ResolveException: download failed: com.tristanhunt#knockoff_2.9.1;0.8.0-16!knockoff_2.9.1.jar(src)
[error] download failed: com.tristanhunt#knockoff_2.9.1;0.8.0-16!knockoff_2.9.1.jar(doc)
[error] java.util.NoSuchElementException: Either.right.value on Left
[error] Use 'last' for the full log.
这是一些堆栈跟踪:
[error] download failed: com.tristanhunt#knockoff_2.9.1;0.8.0-16!knockoff_2.9.1.jar(doc)
java.util.NoSuchElementException: Either.right.value on Left
at scala.Either$RightProjection.get(Either.scala:229)
at sbt.PlayCommands$$anonfun$56.apply(PlayCommands.scala:606)
at sbt.PlayCommands$$anonfun$56.apply(PlayCommands.scala:593)
at sbt.Command$$anonfun$sbt$Command$$apply1$1$$anonfun$apply$6.apply(Command.scala:74)
at sbt.Command$.process(Command.scala:92)
作为依赖项的其他项目工作正常,但不是这个。