Scala & lift の導入 on OSX
あまり資料が無かったのでメモ。lift自体はport化されていないのでgitで取得する。
途中、liftのgithub上のパスが変わっている事に気づかず、トラブルシュートに時間がかかってしまった。
- Scala & Liftのインストール
> sudo port install scala > sudo port install maven2 > mkdir -p ~/Documents/code/scala > cd ~/Documents/code/scala > git clone git://github.com/lift/lift.git > cd lift > mvn clean:clean install
- LiftなProject作成
> cd .. > mvn archetype:create -U \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -DarchetypeVersion=1.0 \ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=net.liftweb.hello -DartifactId=hello-lift
- WebServerの起動
> cd hello-lift/ > mvn install jetty:run
これで作業は完了。Firefoxでhttp://localhost:8080/にアクセスするとHelloなページが見れた。
参考にさせて頂いたサイト:
'Hello World' with Scala and Lift on OSX - Dave Perrett