首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >是否有另一个Git (前提下的Bitbucket)而不是Github不适用于sbt新OtherGitRepo?

是否有另一个Git (前提下的Bitbucket)而不是Github不适用于sbt新OtherGitRepo?
EN

Stack Overflow用户
提问于 2019-12-18 19:54:42
回答 1查看 184关注 0票数 0

我想让我们sbt new ..从一个Giter8模板创建一个新项目。

该模板托管在私有Bitbucket Git Repo中。

它适用于普通的Giter8

代码语言:javascript
复制
g8 https://mycompany.ch/stash/bpf-package-template.g8.git

但与sbt不一样

代码语言:javascript
复制
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上这是不可能的例子或声明。

以下是控制台输出:

代码语言:javascript
复制
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

EN

回答 1

Stack Overflow用户

发布于 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,那么Giter8TemplateResolverGiter8TemplateResolver方法就在这里。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59399173

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档