本教程清楚地解释了如何在 sbt 项目中使用远程 github 依赖:
lazy val reponame = RootProject(uri("git://github.com/group/reponame.git"))
lazy val root = Project(id = "MLSS", base = file("."), settings = sharedSettings) dependsOn(reponame)
但是,如果远程仓库是私有的,它似乎不起作用并抛出一个
Repository not found.
Cloning into '/Users/.../b6958781f05b85672849/reponame'...
[error] Nonzero exit code (128): git clone git://github.com/group/reponame.git
这似乎是一个身份验证错误,但如何指定密钥?谢谢