0
我設法讓這個東西工作一次,但它再次打破..加入第三個斜線不再幫助。在Windows上對此的支持不知何故中斷。定義本地maven回購SBT
我在build.scala
:
val localM2Repo = "Local Maven Repository" at "file:///" + Path.userHome + "/.m2/repository"
當我嘗試編譯:
[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
所以我檢查文件是否與斯卡拉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
什麼可能是失敗的原因?
你可以在「file://」+ Path.userHome.absolutePath +「/.m2/repository」''試試看嗎?''本地Maven倉庫?請注意使用'.absolutePath'和只有兩個斜線。 –