2015-04-15 227 views
0

我試圖在Jenkins中構建一個Scala項目,但我得到UNRESOLVED DEPENDENCIES錯誤消息sbt-native-packager未解決的依賴關係sbt-native-packager 0.4.0(sbtVersion = 0.11.2,scalaVersion = 2.9.1)

請注意該項目是舊的,我無法更新它。

  • 的Scala 2.9.1
  • SBT 0.11.2

plugins.sbt

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")) 

已滿錯誤消息

[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] ::   UNRESOLVED DEPENDENCIES   :: 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] :: com.typesafe#sbt-native-packager;0.4.0: 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-native-packager:0.4.0 (sbtVersion=0.11.2, scalaVersion=2.9.1) 
[warn] 
[error] {file:/r7/jenkins/workspace/cms-senna/project/}default-4270b0/*:update: sbt.ResolveException: unresolved dependency: com.typesafe#sbt-native-packager;0.4.0: not found 

我該如何解決這個問題?什麼是正確的解析器?

回答

0

我改變了解析器使用https和它的工作:

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

出於好奇。 Scala * 2.9.1 *和native-packager * 0.4.0 *。你是用這個來製作的嗎? – Muki

+0

是的,它在生產中。爲什麼這樣問?太老?這裏的每個人都在Ruby工作,但在Scala中有這個傳統項目,兩年內沒有任何改變。 –

+0

我只是好奇:)總是對我們的社區感興趣和某些情況下的原因 – Muki