【发布时间】:2018-04-02 07:08:37
【问题描述】:
我正在尝试将我的SBT project 发布到 mvnrepository。我正在按照这些链接上的说明进行操作:
http://www.scala-sbt.org/release/docs/Using-Sonatype.html,和 https://github.com/xerial/sbt-pack
当我将 xerial sbt-sonatype 插件添加到我的build.sbt 文件时:
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
编译器给我以下错误:
UNRESOLVED DEPENDENCIES
org.xerial.sbt#sbt-sonatype;1.1 not found
Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] org.xerial.sbt:sbt-sonatype:1.1 (scalaVersion=2.11, sbtVersion=0.13)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.xerial.sbt:sbt-sonatype:1.1 (scalaVersion=2.11, sbtVersion=0.13) (/richstat/build.sbt#L56-57)
[warn] +- com.github.shafiquejamal:richstat_2.11:0.0.1
我的 SBT 版本是 0.13,我使用的是 Scala 2.11。我怎样才能解决这个问题?谢谢!
【问题讨论】: