how to call model on root project from subProject?

20 views
Skip to first unread message

Adil Ramdan

unread,
Apr 24, 2014, 4:24:58 AM4/24/14
to play-fr...@googlegroups.com
i do maintenance for an application in my company, the application is using play framework 2.1
this project have a bad architecture because its very huge and not splited to subproject.
now i want to make a additional for that project so i try to make a subproject inside it.

i make a huge project as root (because its not possible to make it as an library) then i create a subproject 
i want to call an object(model) from root to subproject but always not detected.
here my build.sbt configuration :

  
import sbt._
import com.github.play2war.plugin._
import play.Project._

object ApplicationBuild extends Build {

  val appName = "LoanBoard"

  val appVersion = "RC2"


  val appDependencies = Seq(
    // Add your project dependencies here,
    javaCore,
    javaJdbc,
    javaEbean,

    "net.sf.flexjson" % "flexjson" % "3.2",
    "com.google.inject" % "guice" % "3.0",
    "org.codehaus.jackson" % "jackson-core-asl" % "1.9.13",
    "net.sf.opencsv" % "opencsv" % "2.0",
    "commons-io" % "commons-io" % "2.2",
    "org.docx4j" % "docx4j" % "2.7.1",
    "commons-codec" % "commons-codec" % "1.8",
    "commons-logging" % "commons-logging" % "1.1.3",
    "commons-logging" % "commons-logging-api" % "1.1"

  )


     lazy val api = play.Project("api", appVersion, appDependencies, path = file("modules/api"))
 
  lazy val main = play.Project(appName, appVersion, appDependencies)
    .settings(Play2WarPlugin.play2WarSettings: _*)
    .settings(Play2WarKeys.servletVersion := "3.0").dependsOn(api).aggregate(api)

}
with this configuration i cannt call object from root .. how to solve my problem? 

Adil Ramdan

unread,
Apr 24, 2014, 3:32:58 PM4/24/14
to play-fr...@googlegroups.com
anyone can help me? please
Reply all
Reply to author
Forward
0 new messages