Adding dependencies from local Maven repositories to Activator projects

As I’m using in my Activator/Play Framework project a few jars which I build separately using maven, I want to the activator build tool to search for the dependencies in my maven local repositories. In order to do so, include the following lines in build.sbt tool:

resolvers ++= Seq (
Resolver.mavenLocal
)

Once you build a jar via “mvn package” and push it to the local repository using “mvn install” comman, Activator SBT tool will look for it in that location.

If Sbt is not able to find the maven local repository location, you can specify the path directly:

resolvers ++= Seq (
“Sonatype OSS Snapshots” at “https://oss.sonatype.org/content/repositories/snapshots”
)

More Details in SBT Manual.

Did you enjoy this tutorial? Be sure to subscribe to the my RSS feed not to miss my new posts!
... or make it popular on

Leave a Comment.