Question: I'm using ammonite (<http://ammonite.io/>) to write Scala scripts. It allows you to fetch remote dependencies via this kind of text:

```
import $ivy.`org.scalaz::scalaz-core:7.2.7`, scalaz._, Scalaz._

```

How do you use a local maven repo (sitting in e.g. ~/.m2), though?

Answer: 
It changed in v 1.7.1
Now the correct way to do this is like this :

```
import coursierapi.MavenRepository

interp.repositories.update(
  interp.repositories() ::: List(MavenRepository.of("https://some_repo"))
)

```

If you wish to link up a local repository, you can replace `https://some_repo` with `file://path_to_local_rep`

Thanks to @danslapman on github - here's the reference discussion <https://github.com/lihaoyi/Ammonite/issues/1003>
There was [an issue some time ago](https://github.com/lihaoyi/Ammonite/issues/611)
 with [a following PR](https://github.com/lihaoyi/Ammonite/pull/612) that concluded that there quite often local Maven repository contains broken things, so it is not there by default.

However, later ability to add your own resolvers was added, probably sth like:

```
import coursier.MavenRepository

interp.repositories() ++= Seq(MavenRepository(
  "~/.m2/local"
))

```

should work.