Reputation: 17724
I have added resolvers += Resolver.mavenLocal
the the plugins.sbt file However sbt only seems to resolve ~/.ivi
and not ~/.m2
repository. How can I change that?
I tried this as well but it did not seem to work
resolvers += "Local m2y" at Path.userHome.asFile.toURI.toURL + ".m2/repository"
the error message
but the file is there
Upvotes: 1
Views: 4773
Reputation: 781
If you are using repositories
file, you can add maven-local
alongwith local
.
Reference -> https://www.scala-sbt.org/1.x/docs/Launcher-Configuration.html#3.+Repositories+Section
Upvotes: 2
Reputation: 1876
Try this:
resolvers += "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository"
Upvotes: 3