我想让我们sbt new ..从一个Giter8模板创建一个新项目。
该模板托管在私有Bitbucket Git Repo中。
它适用于普通的Giter8
g8 https://mycompany.ch/stash/bpf-package-template.g8.git但与sbt不一样
sbt new https://mycompany.ch/stash/bpf-package-template.g8.git我没有找到在https://www.scala-sbt.org/1.x/docs/sbt-new-and-Templates.html#Template+Resolver上这是不可能的例子或声明。
以下是控制台输出:
mpa$ sbt new https://mycompany.ch/stash/bpf-package-template.g8.git
[info] Loading settings from metals.sbt ...
[info] Loading global plugins from /Users/mpa/.sbt/1.0/plugins
[info] Set current project to my-packages (in build file:/Users/mpa/dev/my-packages/)
[info] Set current project to my-packages (in build file:/Users/mpa/dev/my-packages/)
Template not found for: https://mycompany.ch/stash/bpf-package-template.g8.git更新:我创建了这个问题:https://discuss.lightbend.com
发布于 2020-01-06 17:52:12
它在某种程度上没有击中Giter8TemplateResolver for sbt new https://mycompany.ch/stash/bpf-package-template.g8.git,但我认为您的期望是正确的,而且应该会奏效。
如果您可以帮助调试这个- isDefined - https://github.com/sbt/sbt-giter8-resolver/blob/master/src/main/scala/sbt/Giter8TemplateResolver.scala,那么Giter8TemplateResolver的Giter8TemplateResolver方法就在这里。
https://stackoverflow.com/questions/59399173
复制相似问题