O'Reilly logo

Lift Application Development Cookbook by Gilberto T. Garcia Jr.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Lift application using Maven

In the previous recipe, we learned how to use SBT to create and run a Lift application. Now I will show you how to set up and run a Lift application using Maven, which is another build tool.

Getting ready

If you don't have Maven installed and configured on your computer, go to http://maven.apache.org/download.cgi, download Maven 3.1.0, and follow the installation instructions.

How to do it...

We will use a Maven archetype that will create a ready-to-use Lift application for us.

  1. Open a cmd window and run the following command:
    mvn archetype:generate ^
      -DarchetypeGroupId=net.liftweb ^
      -DarchetypeArtifactId=lift-archetype-basic_2.9.1 ^
      -DarchetypeVersion=2.5 ^
     -DarchetypeRepository=https://oss.sonatype.org/content/repositories/releases ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required