Scala 为什么debian:PackageBin会抛出;Debian中的packageDescription不能为空;build.sbt何时具有此设置?

Scala 为什么debian:PackageBin会抛出;Debian中的packageDescription不能为空;build.sbt何时具有此设置?,scala,sbt,sbt-native-packager,Scala,Sbt,Sbt Native Packager,我想创建一个Debian包,代码用Scala编写,带有sbt和sbt本机包 但当我尝试在sbt控制台中执行debian:package bin时,我收到以下错误: [trace] Stack trace suppressed: run last debian:debianControlFile for the full output. [error] (debian:debianControlFile) packageDescription in Debian cannot be empty.

我想创建一个Debian包,代码用Scala编写,带有sbt和sbt本机包

但当我尝试在sbt控制台中执行
debian:package bin
时,我收到以下错误:

[trace] Stack trace suppressed: run last debian:debianControlFile for the full output.
[error] (debian:debianControlFile) packageDescription in Debian cannot be empty. Use
[error]                  packageDescription in Debian := "My package Description"
这很奇怪,因为在我的
build.sbt
中,我的
packageDescription
设置如下:

import com.typesafe.sbt.SbtNativePackager._
import com.typesafe.sbt.packager.Keys._
import NativePackagerKeys._
import com.typesafe.sbt.packager.archetypes.ServerLoader.{SystemV, Upstart}

serverLoading in Debian := SystemV

name := "testApp"

version := "1.0"

organization := "com.testApp"

scalaVersion := "2.10.3"

maintainer in Debian := "gdc <aaa@aaa.com>"

packageSummary in Debian := "testApp"

packageDescription in Debian := "testApp"

packageArchetype.java_server

exportJars := true
导入com.typesafe.sbt.SbtNativePackager_
导入com.typesafe.sbt.packager.Keys_
导入NativePackageKey_
导入com.typesafe.sbt.packager.archetypes.ServerLoader.{SystemV,Upstart}
Debian中的服务器加载:=SystemV
名称:=“testApp”
版本:=“1.0”
组织机构:=“com.testApp”
规模规避:=“2.10.3”
Debian中的维护者:=“gdc”
Debian中的packageSummary:=“testApp”
Debian中的packageDescription:=“testApp”
PackageGearcheType.java_服务器
exportJars:=true
我使用
packageDescription:=“testApp”
或Linux中的
packageDescription:=“testApp”
进行了测试,但都不起作用。

移动行

packageArchetype.java_server
在导入之后,这样它就不会覆盖设置

build.sbt
导入com.typesafe.sbt.SbtNativePackager_
导入com.typesafe.sbt.packager.Keys_
导入NativePackageKey_
导入com.typesafe.sbt.packager.archetypes.ServerLoader.{SystemV,Upstart}
PackageGearcheType.java_服务器
Debian中的服务器加载:=SystemV
名称:=“testApp”
版本:=“1.0”
组织机构:=“com.testApp”
规模规避:=“2.10.3”
Debian中的维护者:=“gdc”
Debian中的packageSummary:=“testApp”
Debian中的packageDescription:=“testApp”
exportJars:=true

您可以从命令行执行
sbt'show debian:packageDescription'
,还是只执行
sbt
,然后
show debian:packageDescription
,并将输出粘贴到问题中?我怀疑上面的文件
build.sbt
是您的构建定义的一部分。谢谢Jacek,问题是PackageGearcheType.java_服务器覆盖了我的数据。使用show debian:packageDescription后返回空值,现在返回正确的值谢谢@lpiepiora,这是那些仍在挣扎的人的错误,当在sbt或activator中使用交互模式时,每次修改build.sbt时,您必须
重新加载项目定义。
import com.typesafe.sbt.SbtNativePackager._
import com.typesafe.sbt.packager.Keys._
import NativePackagerKeys._
import com.typesafe.sbt.packager.archetypes.ServerLoader.{SystemV, Upstart}

packageArchetype.java_server

serverLoading in Debian := SystemV

name := "testApp"

version := "1.0"

organization := "com.testApp"

scalaVersion := "2.10.3"

maintainer in Debian := "gdc <aaa@aaa.com>"

packageSummary in Debian := "testApp"

packageDescription in Debian := "testApp"

exportJars := true