3
我有一個位於file:///some/path/here
的內部maven存儲庫。我想發佈我的sbt文物到這個位置。我收集到以下內容應該可以工作。將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將工件發佈到由文件路徑指定的存儲庫?
這裏有一個相關的問題無解:https://groups.google.com/forum/?fromgroups=#!topic/simple -build工具/ m1ogeyCPinQ – schmmd 2013-02-13 17:04:44