当前位置: 首页 > 知识库问答 >
问题:

未能上载到sonatype的sbt 0.13,xsbt-gpg-plugin依赖项未解决:com.jsuereth#xsbt-gpg-plugin;0.6

嵇弘新
2023-03-14
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")

[warn]====sbt-plugin-release:trid[warn]
http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/com.jsuereth/xsbt-gpg-plugin/scala_2.10/sbt_0.13/0.6/ivys/ivy.xml[warn]:::*::*::*::*::*::*::*::*::*::*::*::*::*未解决的依赖项::[warn]:::::::::::::***********************[warn]:::com.jsuereth#xsbt-gpg-plugin;0.6:未找到[warn]::**************************************************************************************************************************************检查这些依赖项是否与所请求的属性存在。[warn]com.jsuereth:xsbt-gpg-plugin:0.6(Sbtversion=0.13,ScalaVersion=2.10)[warn]sbt.resolveException:com.jsuereth#xsbt-gpg-plugin;0.6:在sbt.ivyactions$.sbt$ivyactions$$resolve(ivyactions.scala:217)处找不到

因此,我尝试将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 html" target="_blank">java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:270)

不管怎样,能修好它吗?谢谢

共有1个答案

孙昂然
2023-03-14

不确定,但我想你使用的是那个插件的一个相当旧的版本?

我在最新的sbt 0.13.6中使用以下内容。我在~/.sbt/0.13/plugins/build.sbt:

addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.1") // sign Sonatype artifacts

我还在~/.sbt/0.13/sonatype.sbt:

credentials += Credentials("Sonatype Nexus Repository Manager",
                           "oss.sonatype.org",
                           "user-name", "pass-word")
 类似资料:
  • 我做错了什么? 我已经将Intellij设置为使用Scala2.11.8,但输出可能意味着使用了不同的版本(?)。 我试过以前一个类似问题的想法,但没有帮助: 更新:我将SBT版本更改为0.13.18后的输出

  • 我正在尝试在OS X Mojave上启用提交签名。 错误是: 我尝试的是: 工作正常(见下文),未安装或 安装了GPG密钥链并添加了一个新密钥(甚至添加了一个单独的仅限符号的子密钥whithin) 已安装 工作正常(为文件生成新的.asc文件,为纯文本输出文本) 我调查并尝试了各种选择的问题: gpg对数据签名失败致命:写入提交对象失败[Git 2.10.0] git错误-gpg对数据签名失败 我

  • 这是build.sbt文件: 更新:查看解析器 [play21-osm]$show resolvers[信息]列表(Typesafe Releases repository:http://repo.Typesafe.com/Typesafe/Releases/,Typesafe relepository:http://Typesafe.artifactoryonline.com/Typesafe,

  • 正如spark文档所述,我运行来构建spark 1.6.2,但出现如下错误: [信息]正在更新{file:/home/charlielin/workspace/spark-1.6.2/}网络-洗牌...[info]解决org.fusesource.jansi#jansi;1.4...[警告]::::::::::::::::::::::: 未解决的依赖关系:::[警告]:::::::::::::::