我有一个内部 Maven 存储库,位于file:///some/path/here. 我想将我的 sbt 工件发布到这个位置。我发现以下应该有效。
publishMavenStyle := true
publishTo <<= version { (v: String) =>
  val path = "file:///some/path/here/"
  if (v.trim.endsWith("SNAPSHOT"))
    Some("snapshots" at nexus + "maven-snapshots")
  else
    Some("releases"  at nexus + "maven")
}
但是,这会失败,但会出现以下异常。
[info]  delivering ivy file to .../target/scala-2.9.2/ivy-1.0-SNAPSHOT.xml
java.lang.UnsupportedOperationException: URL repository only support HTTP PUT at the moment
    at org.apache.ivy.util.url.BasicURLHandler.upload(BasicURLHandler.java:202)
    at org.apache.ivy.util.FileUtil.copy(FileUtil.java:150)
    at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84)
如何使用 sbt 将工件发布到文件路径指定的存储库?