How to build a simple war file with sbt?

11,612

Solution 1

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

Solution 2

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.

Share:
11,612

Related videos on Youtube

user605331
Author by

user605331

Updated on June 04, 2022

Comments

  • user605331
    user605331 about 2 years

    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.