Georg Heiler
Georg Heiler

Reputation: 17724

sbt local m2 repository

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"

edit

the error message enter image description here but the file is there enter image description here

Upvotes: 1

Views: 4773

Answers (2)

nishantv
nishantv

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

mgosk
mgosk

Reputation: 1876

Try this:

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

Upvotes: 3

Related Questions