【问题标题】:Publishing an sbt artifact to the filesystem, with resolver specified in ~/.sbt/repositories file将 sbt 工件发布到文件系统,并在 ~/.sbt/repositories 文件中指定解析器
【发布时间】:2014-10-23 18:33:22
【问题描述】:

这是一个与Publish sbt artifact to filesystem 密切相关的问题。不同之处在于我在 ~/.sbt/repositories 文件中指定了解析器,而不是按照答案指定的方式写 Resolver.file

我在 sbt 0.13.5。我的文件看起来像

[repositories]
  local
  myrepo: file://path/to/my/repo/, <someivypattern>

当我尝试发布到它时,我得到了通常的错误:

java.lang.UnsupportedOperationException: URL repository only support HTTP PUT at the moment

我尝试了不同的方法来指定 repo 路径,但它似乎总是需要一个协议规范,如果我使用file:/,这似乎会阻止我发布到它。

如何使用repositories 文件发布?

【问题讨论】:

    标签: scala sbt ivy


    【解决方案1】:

    事实证明这是不可能的。我在this pull request 中修复了它,现在就是这样。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-06-18
      • 2019-04-02
      • 2014-10-15
      • 2014-04-17
      • 2017-03-01
      • 2018-08-23
      • 2021-05-31
      相关资源
      最近更新 更多