Maven LiftWeb

From Stax

Jump to: navigation, search

Lift is the leading web framework for Scala, and it combines the best-of-breed features from popular frameworks for other languages including Rails, Django, and Wicket to create a rich and powerful set of features for Scala web applications.

To use Lift on Stax, it's easiest to create an application using the official Lift Maven archetype, and then configure the project to use the Stax plugins for running and deploying the application.

Create a Lift project using Maven

Run the archetype generate command

mvn archetype:generate -U \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-basic \
-DarchetypeVersion=1.0 \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=example \
-DartifactId=mylift \
-Dversion=0.1-SNAPSHOT

Register the Stax plugins

By default the Lift application does not support the Stax Maven commands. To add support for the Stax run and deploy commands to the project, review the Maven Guide.

Application lifecycle commands

Compile the Scala and Java source files

mvn compile

Test the application

mvn test

Run the application in a local server

mvn stax:run

Deploy the application to Stax

mvn stax:deploy
Personal tools
Navigation