Since 2.3.x Play is distributed as an Activator distribution that contains all Play’s dependencies to follow sbt's rules, i.e. dependencies/libraries built locally go to ~/.ivy2/local
while the cache of downloaded dependencies/libraries is under ~/.ivy2/cache
.
And later in the What’s new in Play 2.3 document:
Default ivy cache and local repository
Play now uses the default ivy
cache and repository, in the .ivy2 folder in the users home directory.
This means Play will now integrate better with other sbt builds, not
requiring artifacts to be cached multiple times, and allowing the
sharing of locally published artifacts.
When you update
(and hence compile
or run
) a Play 2.3.x project, the dependencies go to ~/.ivy2/cache
.
What's under activator-1.2.3/repository
appears a local Ivy2 repository to speed up resolving dependencies that otherwise would've been downloaded from online repositories.
Dependencies under ~/.m2
have to be added explicitly as described in Library dependencies and Resolvers in the official documentation of sbt.
You may find fullResolvers
task useful to learn about the available resolvers/repositories.
[jacoco4sbt-play] $ help fullResolvers
Combines the project resolver, default resolvers, and user-defined resolvers.
[jacoco4sbt-play] $ show fullResolvers
[info] ArrayBuffer(Raw(ProjectResolver(inter-project, mapped: )), FileRepository(local,FileConfiguration(true,None),Patterns(ivyPatterns=List(${ivy.home}/local/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), artifactPatterns=List(${ivy.home}/local/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), isMavenCompatible=false, descriptorOptional=false, skipConsistencyCheck=false)), public: http://repo1.maven.org/maven2/, Typesafe Releases Repository: http://repo.typesafe.com/typesafe/releases/)
[success] Total time: 0 s, completed Sep 23, 2014 11:02:19 PM