we use the Play Framework 2.3.7 and created a multiproject with sbt (sbt version 0.13.5), which consists of four modules. In the build.sbt file of the project root, we define the modules:
lazy val common = (project in file("modules/common")).enablePlugins(PlayJava, SbtWeb)
lazy val store = (project in file("modules/store")).enablePlugins(PlayJava, SbtWeb).dependsOn(common)
lazy val catalog = (project in file("modules/catalog")).enablePlugins(PlayJava, SbtWeb).dependsOn(common)
lazy val backend = (project in file("modules/backend")).enablePlugins(PlayJava, SbtWeb).dependsOn(common)
lazy val root = (project in file(".")).enablePlugins(PlayJava, SbtWeb).aggregate(common, store, catalog, backend).dependsOn(common, store, catalog, backend)
If we try to run our application using
activator run
It compiles the application without errors. After the first request on the main page, he will again begin to compile the entire project ... up to four times. This takes a lot of time, but after that everything works fine.
So what is the reason the project often compiles? Has anyone else stumbled upon this issue?
Thank.
source
share