Windows 定义本地maven回购至SBT

Windows 定义本地maven回购至SBT,windows,maven,sbt,Windows,Maven,Sbt,我曾经设法让这个东西工作过一次,但它又坏了。添加第三个斜杠不再有用了。在Windows上对此的支持不知何故被破坏了 我在build.scala中有: 当我尝试编译时: [warn] ==== Local Maven Repository: tried [warn] file:///C:/Users/tomaszk/.m2/repository/mcloud-integration-git/mcloud-integration-git-parent/1.0.1-SNAPSHOT/mcloud-

我曾经设法让这个东西工作过一次,但它又坏了。添加第三个斜杠不再有用了。在Windows上对此的支持不知何故被破坏了

我在build.scala中有:

当我尝试编译时:

[warn] ==== Local Maven Repository: tried
[warn]   file:///C:/Users/tomaszk/.m2/repository/mcloud-integration-git/mcloud-integration-git-parent/1.0.1-SNAPSHOT/mcloud-integration-git-parent-1.0.1-SNAPSHOT.pom
因此,我检查了Scala REPL是否存在该文件:

val u = new java.net.URI("file:///C:/Users/tomaszk/.m2/repository/mcloud-integration-git/mcloud-integration-git-parent/1.0.1-SNAPSHOT/mcloud-integration-git-parent-1.0.1-SNAPSHOT.pom")
val f = new java.io.File(u)
f.exists

res26: Boolean = true

失败的原因是什么?

好的,我已经开始运行了

无法解析的工件在.ivy2文件夹中被引用。为什么?我不知道。刚才看到sbt记录了它不能删除.ivy2文件夹中旧版本的人工制品

所以我删除了整个.ivy2文件夹,然后SBT毫无问题地拿起了这个罐子

我试图复制它,但运气不好,所以我不能开罚单

您能否尝试一下位于文件://+Path.userHome.absolutePath+/.m2/存储库的本地Maven存储库?请注意.absolutePath的使用,并且只有两个斜杠。
val u = new java.net.URI("file:///C:/Users/tomaszk/.m2/repository/mcloud-integration-git/mcloud-integration-git-parent/1.0.1-SNAPSHOT/mcloud-integration-git-parent-1.0.1-SNAPSHOT.pom")
val f = new java.io.File(u)
f.exists

res26: Boolean = true