Where is the library library of the Play Framework?

I am trying to use Play Framework 2.3.2 using a standalone installation with Activate Activator 1.2.3 on Mac OS X 10.9.4.

In the folder activator-1.2.3that I unpacked, there is a folder repositorythat looks like my folder ~/.ivy2/cache, because it contains folders for ... libraries? Ligaments? I do not know the terminology.

Now, as I understand it, Activator uses SBT, and SBT uses Ivy to manage dependencies. Ivy is something like Maven, it even uses its own repositories.

My question is this:

  • If I open a Play Framework project and Activator downloads all the dependencies, what exactly is happening?
  • Is there any other process when I start building a project?
  • Where are the libraries (packages?) Downloaded?
  • Is the folder activator-1.2.3/repositorysomething like a bootstrap, and all the other dependencies - ~/.ivy2?
  • What if I installed Maven and there was a folder ~/.m2?

So you see that I completely lost this. Any ideas are greatly appreciated.

+4
source share
1 answer

Since 2.3.x Play is distributed as an Activator distribution that contains all Plays dependencies to follow sbt rules, that is, locally built dependencies / libraries go to ~/.ivy2/localwhile the cache of loaded dependencies / libraries is under ~/.ivy2/cache.

And later in the document What's New in Play 2.3 :

- ivy

, .ivy2 .

, Play sbt, , .

update (, , compile run) Play 2.3.x, ~/.ivy2/cache.

activator-1.2.3/repository Ivy2, , -.

~/.m2 , Resolvers. sbt.

fullResolvers, /.

[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
+7

All Articles