Search code examples
scalatomcat7java-ee-6sbt

Build tool for Scala web application development


While working with Scala frameworks such as Play! and Lift I was really amazed how these frameworks manage to create a full development stack from the source code up to the web application container (Jetty).

Right now I'm trying to configure a project on my own with the following features:

  • Automatic deployment on Tomcat 7 (I'm not using Jetty as I require JEE6 support)
  • WAR file packaging

Is it possible to do it with a build tool such as SBT or Maven?

Note: My goal is to create my own project structure, not using an existing framework (even though I'm taking some ideas from them).


Solution

  • There is a web plugin for SBT:

    https://github.com/JamesEarlDouglas/xsbt-web-plugin

    It gives you war packaging, but not automatic deployment (other than on Jetty, which it integrates, but which you don't have to use).

    That said, I'd like to see a fork of that plugin that removes the Jetty dependency and adds an automatic external deployment option. Shouldn't be too hard to do.