我正在尝试使用 RPM 文件打包 Play Framework 应用程序,但我不知道将 Play Framework 项目中所需的配置放在哪里。
我已将插件添加到我的 project/plugins.sbt 文件中
// Comment to get more information during initialization
logLevel := Level.Warn
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "tomax repository" at "http://maven.tmx.com/nexus"
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.6.3")
当我运行以下命令时,我在 Play 中遇到错误:
rpm:package-bin
然后我按照建议运行错误的最后一个命令,我得到了
Creating SPEC file: /projects/myproj/target/rpm/SPECS/MyProj.spec
[debug] Executing rpmbuild with: rpmbuild -bb --buildroot /projects/myproj/target/rpm/buildroot --define _topdir /projects/myproj/target/rpm --target noarch--Linux MyProj.spec
[error] error: line 4: Empty tag: Summary:
[info] Building target platforms: noarch--Linux
[info] Building for target noarch--Linux
java.lang.RuntimeException: Unable to run rpmbuild, check output for details