所以我正在使用 packageArchetype.java_server 并设置我的映射,以便“src/main/resources”中的文件进入 debian 包中的“/etc/”文件夹。我正在使用“sbt debian:package-bin”来创建包
问题是当我使用“sbt run”时,它会从类路径中获取 src/main/resources。让 sbt-native-packager 将 /etc/ 作为我的配置和日志文件的资源类路径的正确方法是什么?
插件.sbt:
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.0-M2")
构建.sbt
...
packageArchetype.java_server
packageDescription := "Some Description"
packageSummary := "My App Daemon"
maintainer := "Me<me@example.org>"
mappings in Universal ++= Seq(
file("src/main/resources/application.conf") -> "conf/application.conf",
file("src/main/resources/logback.xml") -> "conf/logback.xml"
)
....