scalatra で作ったプロジェクトを jetty の stand alone 環境で使用できるようにする。 jetty を組込み standalone で使いたい。 仕事のチーム内の情報共有用のサイトを scalatra で作ってみたのですが、実際に稼働させるのに jetty の standalone な状態で稼働させたいので scalatra のGuide の deployment -> standalone を参考に設定しました。 まずは jetty ランチャーをドキュメント通りに追加。 次に project/build.scala を これまた ドキュメント通りに変更 その後 プロジェクト全体を一つの jar ファイルにまとめて実行できるように sbt のプラグインである sbt-assembly を組み込む。 project/plugins.sbt に addSbtPlugin