加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

HelloWorld示例(sbt new sbt / scala-seed.g8)无效

发布时间:2020-12-16 09:25:34 所属栏目:安全 来源:网络整理
导读:在使用scala 2.12.0在Mac 10.12.2上安装sbt版本0.13.13(使用brew)后,我尝试了文档中的第一个示例(根据主题sbt new sbt / scala-seed.g8). 结果是: ...[info] Set current project to hello (in build file:/scratch/hello/)SLF4J: Failed to load class "or
在使用scala 2.12.0在Mac 10.12.2上安装sbt版本0.13.13(使用brew)后,我尝试了文档中的第一个示例(根据主题sbt new sbt / scala-seed.g8).

结果是:

...
[info] Set current project to hello (in build file:/scratch/hello/)
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
org.eclipse.jgit.api.errors.TransportException: http://github.com/sbt/scala-seed.g8.git: 301 Moved Permanently
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
...

我是个新人,只是想知道这是不是因为我的经验不足…

解决方法

运行它作为git url的参数传递:

sbt new https://github.com/sbt/scala-seed.g8

无需更改任何git配置.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读