Note that there are some explanatory texts on larger screens.

plurals
  1. POSimple build tool (SBT) package WAR
    primarykey
    data
    text
    <p>I have a multiple project configuration. One of the projects needs to be build as a war file for future deployment. I used this sbt-plugin: <a href="https://github.com/JamesEarlDouglas/xsbt-web-plugin" rel="nofollow">https://github.com/JamesEarlDouglas/xsbt-web-plugin</a> to build the war. However I need it to include depended projects as jars.</p> <p>In maven I included other modules as a dependency in my WAR module and they appeared eventually in the WAR:lib directory. It seems that sbt-web-plugin default behavior is not to include them </p> <p>What I mean is: This is a part of my parent.scala file</p> <pre><code>lazy val dataPopulator = Project( "data-populator", file("data-populator"), settings = buildSettings ++ Seq (libraryDependencies ++= dataPopulatorDeps)) lazy val warProject = Project(id = "rest-ws", base = file("rest-ws"), settings = buildSettings ++ Seq (libraryDependencies)) dependsOn(dataPopulator) </code></pre> <p>The <em>dataPopulator</em> Project above when packaged creates a jar. The <em>warProject</em> Project above have a specific <em>build.sbt</em> in it's directory rest-ws/build.sbt: </p> <pre><code>seq(webSettings :_*) name := "main-ws" libraryDependencies += "org.mortbay.jetty" % "jetty" % "6.1.22" % "container" </code></pre> <p>When I run the package command (added by the web plugin) it creates a war, the problem is that this war doesn't include <em>dataPopulator jar</em> while it depends on it during compile time.</p> <p>Anyone have a suggestion how to include generated jar artifacts from some modules into another project that is packaged as war ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload