It is common practice to start a Lift web application using Maven. Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting, and documentation from a central piece of information. For details, see http://maven.apache.org/.
To create a new Lift project, use Maven interactively in one of the following three ways:
mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/ |
Or:
mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-blank \ -DarchetypeVersion=0.7.1 \ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=__my.liftapp__ -DartifactId=__liftapp__ |
Or:
mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -DarchetypeVersion=0.7.1 \ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=__my.liftapp__ -DartifactId=__liftapp__ |
After coding your application, build the WAR file using the mvn package command. Then deploy the WAR file to the Sun GlassFish Enterprise Server as you would any other web application.