Skip to content

Create Lift projekt with SBT

gbatalski edited this page May 26, 2011 · 2 revisions

Create new Lift Project with SBT

Setup SBT scala build tool

  1. Download sbt-launch-X.X.X.jar from http://code.google.com/p/simple-build-tool/
  2. Create launcher for it as described here and add the path to the launcher to path.
  3. I would set the JVM Options to -XX:MaxPermSize=256m -Xmx1G to prevent the premature out of memory.

Create Lift Project

  1. From the console run the command sbt and create the new project with your desired name.

  2. Add the lift support to the new project > *lifty is org.lifty lifty 1.6.1

  3. Initialize empty lift project > lifty create project-blank

  4. With > reload and > update commands reload the dependencies

Update project configuration

  1. If the required libraries not found, we need to correct the Project.scala and set the currently available version of the dependencies

Eclipsify project

  1. For work with eclipse, we need to explore the sbt dependencies to eclipse classpath. To do so use the Sbt-Eclipsify plugin for sbt. After install reload and update the project. You should get the sbt action eclipse.

Running/Stopping

  1. To run the application use > jetty-run sbt command.
  2. Application stops by calling > jetty-stop.