Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build a simple war file with sbt?

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.

like image 565
user605331 Avatar asked Jan 02 '12 14:01

user605331


2 Answers

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

like image 56
pr1001 Avatar answered Sep 19 '22 22:09

pr1001


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.

like image 39
Janx Avatar answered Sep 18 '22 22:09

Janx