maven build lift application(Scala)

Develop Environment

Linux + openjdk1.6

Install the maven

type command:

$: mvn archetype:generate \

-DarchetypeGroupId=net.liftweb \

-DarchetypeArtifactId=lift-archetype-basic \

-DarchetypeVersion=2.0-scala280-SNAPSHOT \

-DarchetypeRepository=http://scala-tools.org/repo-snapshots \

-DremoteRepositories=http://scala-tools.org/repo-snapshots \

-DgroupId=com.sgl \

-DartifactId=third

It will build a lift application, and Download the need libraries.

mvn install # Build the project

mvn clean # Clean the target

mvn jetty:run #Deploy the application

And then

$: firefox http://localhost:8080

u will look your first Lift web application

And use eclipse to develop,

U can

$: mvn eclipse:eclipse -DdownloadJavadocs=true

(练练英语^_^)(大部分是我appspot上的原文) floys1987.appspot.com

你可能感兴趣的:(eclipse,maven,scala,linux,firefox)