2016-11-21 122 views
0

我已经加入了resolvers += Resolver.mavenLocal the plugins.sbt文件但是sbt似乎只能解析~/.ivi而不是~/.m2存储库。我该如何改变它?sbt本地m2存储库

我想这很好,但它似乎没有工作

解析器+ = “本地M2Y” 在Path.userHome.asFile.toURI.toURL + “.m2目录/库”

编辑

错误消息 enter image description here 但该文件是有 enter image description here

+0

您是否阅读过http://stackoverflow.com/questions/10773319/sbt-doesnt-find-file-in-local-maven-repository-although-its-there?rq=1并在尝试过三次斜杠'file:' – manuzhang

回答

1

试试这个:

resolvers += "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository" 
+0

不幸的是,这似乎并没有成功。我更新了帖子,以反映文件在m2文件夹中的错误消息/证据。奇怪的是,MavenLocal解析器在我的Mac上工作得很好 - 但显然不是在Linux上。 –