我有一个项目,它依赖于:
"com.github.haifengl" % "smile-core" % "1.1.0",
"com.github.haifengl" % "smile-scala_2.11" % "1.1.0",并希望修改sbt以使用来自github的同一项目的最新母版。
我已经在其他类似的项目中做到了这一点:
lazy val myProject = Project("myProject", file("."))
.settings(commonSettings: _*)
.dependsOn(smileProject)
lazy val smileProject = RootProject(uri("https://github.com/haifengl/smile"))但是,由于以下原因,此操作失败:
unresolved dependency: default#smile_2.11;0.1-SNAPSHOT: not found这就说得通了。关注this example
lazy val smileProject = ProjectRef(uri("https://github.com/haifengl/smile"), "smile-core")我得到了:
[error] No project 'smile-core' in 'https://github.com/haifengl/smile'.
[error] Valid project IDs: smilesmile-core看起来是个合适的名字。
更新:添加.git扩展
lazy val smileProject = ProjectRef(uri("https://github.com/haifengl/smile.git"), "smile-core")还提供了:
[error] No project 'smile-core' in 'https://github.com/haifengl/smile.git'.
[error] Valid project IDs: benchmark, core, data, demo, graph, interpolation, math, nlp, plot, root, scala, shell..。这看起来是一种进步
发布于 2016-08-12 20:04:10
你可以检查2015年的这个"Git Subproject Compile-time Dependencies in Sbt“是否可以工作:
lazy val root = Project("root", sbt.file(".")).dependsOn(smileProject, ...)
lazy val smileProject = ProjectRef(uri("https://github.com/haifengl/smile.git"), "core")https://stackoverflow.com/questions/38907340
复制相似问题