The My Play 2 app is a subproject of the larger Maven app. The Play 2 application has dependencies in its parent - it gets access to data from it. Therefore, I want the build of the application to depend on an external Maven project.
Basically, I want to write this:
val main = play.Project(appName, appVersion, appDependencies).settings( // settings ).dependsOn(externalPom(baseDirectory(_ / "../pom.xml")))
But of course, this is not valid syntax.
I tried to define my play.Project as follows:
val main = play.Project(appName, appVersion, appDependencies).settings( externalPom(baseDirectory(_ / "../pom.xml")) )
Which fails because (I think) the override causes Play not to load its own exception
I tried to define a new Project like this:
lazy val data = Project("data", file(baseDirectory(_ / "..).settings( externalPom(baseDirectory(_ / "../pom.xml")) )
And depending on what doesn't work, because the main class is not detected.
Any suggestions on how to do this? I am new to SBT.
source share