14
votes

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.

2

2 Answers

15
votes

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

3
votes

Here's a blog post I did detailing the changes in SBT 0.10.x in regards to web projects: http://janxspirit.blogspot.com/2011/06/scalatra-mongodb-template-project-using.html

Most stuff is the same and the template project referenced in the post has been updated to 0.11.x Should help get you started with a simple web project with SBT. giter8 is a great tool for starting template projects.