我plugins.sbt
有這樣的:無法上傳到Sonatype的與SBT 0.13與xsbt-GPG-插件未解析的依賴性:com.jsuereth#xsbt-GPG-插件; 0.6
logLevel := Level.Warn
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "1.0.0")
resolvers += Resolver.url("sbt-plugin-releases", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases")) (Resolver.ivyStylePatterns)
addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.6")
當我運行sbt publish
我得到:
[警告] ==== SBT-插件發佈版:試圖[警告]
http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/com.jsuereth/xsbt-gpg-plugin/scala_2.10/sbt_0.13/0.6/ivys/ivy.xml [警告] :::::::::::::::::::: :::::::::::::::::::::::::: [警告] ::
未解決的依賴:: [警告] :::::::::::::::::::::::::::::::::::::::::::: :: [警告] :: com.jsuereth#xsbt-GPG-插件; 0.6:未找到[警告] :::::::::::::::::::::::: :::::::::::::::::::::: [警告] [警告]注意: 一些未解決的依賴關係具有額外的屬性。檢查這些 依賴關係是否存在於請求的屬性中。 [警告] com.jsuereth:xsbt-GPG-插件:0.6(sbtVersion = 0.13, scalaVersion = 2.10)[警告] sbt.ResolveException:無法解析 依賴性:com.jsuereth#xsbt-GPG-插件; 0.6:不發現在 sbt.IvyActions $名.bst $ IvyActions $$決心(IvyActions.scala:217)在 sbt.IvyActions $$ anonfun $更新$ 1.適用(IvyActions.scala:126)
所以我試圖將addSbtPlugin
更新爲:
addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.6",
sbtVersion = "0.12", // SBT version
scalaVersion = "2.9.2")
現在我得到
[warn] The global sbt directory is now versioned and is located at /home//.sbt/0.13.
[warn] You are seeing this warning because there is global configuration in /home//.sbt but not in /home//.sbt/0.13.
[warn] The global sbt directory may be changed via the sbt.global.base system property.
[info] Loading project definition from /home//dev/projects/myproj/project
[warn] Multiple resolvers having different access mechanism configured with same name 'sbt-plugin-releases'. To avoid conflict, Remove duplicate project resolvers (`resolvers`) or rename publishing resolver (`publishTo`).
**java.lang.NoClassDefFoundError: sbt/Scoped$ListSetting**
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
反正要修好嗎? 感謝