Sbt native packager不会创建服务脚本文件

时间:2018-05-25 15:04:24

标签: sbt sbt-native-packager

我使用原生打包程序将play api部署为RPM包。创建的包缺少/etc/init.d/文件夹和脚本。

我该如何调试这种情况?

以下是build.sbt的摘录:

lazy val myApp = (project in file("api"))
  .enablePlugins(PlayScala, RpmDeployPlugin, SonarPlugin)
  .configs(IntegrationTest)
  .settings(  
    organization := "com.organization",
    scalaVersion := "2.11.12"
    ...)
  libraryDependencies ++= Seq( etc...)

1 个答案:

答案 0 :(得分:1)

我遇到的问题是我遗失了SystemVpluginRpmDeployPlugin(我只使用了RpmPlugin

lazy val `my-api` = (project in file("my-api"))
  .enablePlugins(PlayScala, RpmDeployPlugin, SystemVPlugin)
  ...