How to build a simple war file with sbt?

user605331 picture user605331 · Jan 2, 2012 · Viewed 11.3k times · Source

I'm trying to make a webapp using Scala and Apache Wicket and am not sure how to structure my project and use SBT to build a war file. What directory structure should I use and how can I have SBT build the war file?

I'm new to SBT but my guess is there is an SBT plugin I need for this, but I'm not sure which to use.

Answer

pr1001 picture pr1001 · Jan 2, 2012

Checkout the web plugins. You'll probably want xsbt-web-plugin.