未解析的依赖项sbt-native-packager 0.4.0(sbtVersion = 0.11.2,scalaVersion = 2.9.1)

时间:2015-04-15 18:36:13

标签: scala sbt sbt-native-packager

我试图在Jenkins中构建一个Scala项目,但我收到UNRESOLVED DEPENDENCIES的{​​{1}}错误消息。

请注意项目已过时,我无法更新。

  • Scala 2.9.1
  • sbt 0.11.2

plugins.sbt

sbt-native-packager

完整错误消息

resolvers += "Web plugin repo" at "http://siasia.github.com/maven2"              

resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

resolvers += Resolver.url("SBT native packager from bintray", new URL("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0")          

addSbtPlugin("com.typesafe" % "sbt-native-packager" % "0.4.0")                   

libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-web-plugin" % (v+"-0.2.11"))

我该如何解决这个问题?什么是正确的解析器?

1 个答案:

答案 0 :(得分:0)

我更改了解析程序以使用https并且工作正常:

resolvers += Resolver.url(
    "sbt-plugin-releases on bintray",
    new URL("https://dl.bintray.com/sbt/sbt-plugin-releases/")
  )(Resolver.ivyStylePatterns)