Liftのプロジェクトの作成とサーバの起動
Scalaとmavenの設定が終わったら、プロジェクトを作成する。
作業ディレクトリ(eclipseのworkspaceの下など)へ移動し、以下のコマンドを入力する
mvn archetype:generate -U \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -DarchetypeVersion=0.10 \ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=net.liftweb.hello \ -DartifactId=helloworld \ -Dversion=1.0-SANPSHOT
BUILD SUCCESSFULと表示されたら、以下を入力してWebサーバを起動する。
cd helloworld mvn jetty:run
Webブラウザで、http://localhost:8080/にアクセスし、Welcome to your project!と表示されたらOK
参考URL
scalaのWebフレームワーク liftで遊ぶ 目次 - ( ꒪⌓꒪) ゆるよろ日記