【问题标题】:sbt new scala/scalatest.g8 fails on TransportExceptionsbt new scala/scalatest.g8 在 TransportException 上失败
【发布时间】:2017-09-29 04:55:59
【问题描述】:

当我尝试使用此命令创建 ScalaTest 示例时:

sbt new scala/scalatest-example.g8 fails on TransportException

我得到以下信息:

[info] Set current project to scala (in build file:/Users/chasrmartin/Dropbox/Etudes/Scala/)
[error] org.eclipse.jgit.api.errors.TransportException: git@github.com:scala/scalatest-example.g8.git: Auth fail
[error]     at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
[error]     at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:193)

我从下一个(例如this SO question)尝试了几种解决方法,但均无济于事。看来这一定是一个简单的问题,我从初学者教程中得到了这个命令。

更新

我从https://www.scala-lang.org/documentation/getting-started-sbt-track/testing-scala-with-sbt-on-the-command-line.html得到这个命令

【问题讨论】:

标签: scala sbt


【解决方案1】:

这个项目似乎不存在了。 相反,我更喜欢使用普通的 scala-seed.g8

> sbt new scala/scala-seed.g8

并手动添加测试类。 This 是具有相同类和测试的等效教程。

scala 种子模板已经带有你想要的结构和测试依赖。可以正常运行sbt test

【讨论】:

  • 刚刚输入 sbt new scala/scalatest-example.g8 就可以了
猜你喜欢
  • 2017-03-22
  • 2022-11-12
  • 2020-04-19
  • 1970-01-01
  • 1970-01-01
  • 2015-03-13
  • 2019-02-24
  • 1970-01-01
  • 2018-07-11
相关资源
最近更新 更多