2016-11-21 2 views
0

resolvers += Resolver.mavenLocal plugins.sbt 파일을 추가했습니다. 그러나 sbt는 ~/.ivi이 아닌 ~/.m2 리포지토리를 해결하는 것으로 보입니다. 어떻게 바꿀 수 있습니까? sbt 로컬 m2 저장소

은 나뿐만 아니라이 시도하지만, + ".m2/저장소"

편집

Path.userHome.asFile.toURI.toURL에서

리졸버 + = "로컬 m2y을"작동하지 않았다

오류 메시지 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을 읽고 3 개의 슬래시 'file :' – manuzhang

답변

1

이이 시도입니다 :

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

불행히도, 이것은 트릭을 수행하지 않는 것 같습니다. 파일이 m2 폴더에 있음을 증명하는 오류 메시지를 반영하도록 게시물을 업데이트했습니다. 이상하게도 MavenLocal 분석기는 제 맥에서 잘 작동하지만 - 분명히 리눅스에서는 아닙니다. –

관련 문제