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
我該如何解決這個問題?什麼是正確的解析器?
出於好奇。 Scala * 2.9.1 *和native-packager * 0.4.0 *。你是用這個來製作的嗎? – Muki
是的,它在生產中。爲什麼這樣問?太老?這裏的每個人都在Ruby工作,但在Scala中有這個傳統項目,兩年內沒有任何改變。 –
我只是好奇:)總是對我們的社區感興趣和某些情況下的原因 – Muki