jettysbtscalatrasbt-assemblyxsbt-web-plugin

Create an executable jar for SBT scalatra webapp using Jetty


I wrote a small scalatra webapp using SBT. Webapp has default jetty plugin configured. Now i want to create an executable jar from that scalatra webapp which should run by simply executing the jar. I am trying to bundle the jar with assembly plugin and create jar But couldn't make it working.

Can someone suggest me how could i solve this problem.


Solution

  • Link suggested by @RobinGreen answers my question. URL : Standalone deployment of Scalatra servlet

    You will also get more details at below links : scalatra.org/guides/deployment/standalone.html For project structure reference, check here : scalatra.org/getting-started/project-structure.html