无法将SNAPSHOT与SBT一起发布到Sonatype OSS

时间:2013-12-15 12:25:57

标签: scala sbt sonatype

首先,我能够将发布版本发布到OSS Sonatype(因此帐户设置,签名等没有问题)。但是当我尝试发布SNAPSHOT版本时,我得到了一个 Forbidden IOException 。 SBT publishTo存根,我使用的是我在SBT Publish页面上看到的标准 -

def _publishTo(v: String) = {
  val nexus = "https://oss.sonatype.org/"
  if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
  else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}

有没有其他人遇到并解决了这个问题?提前谢谢。

1 个答案:

答案 0 :(得分:0)

我对nexus发布快照有类似的问题。 发布第一次工作,当我再次尝试时,我得到禁止的错误。 无法在play框架中使用build.scala重新发布,或者sbt没有附加时间戳,在此问题上尚未在任何论坛中找到解决方案。