Wednesday, 15 February 2012

scala - Why does debian:package-bin throw "packageDescription in Debian cannot be empty" when build.sbt has the setting? -



scala - Why does debian:package-bin throw "packageDescription in Debian cannot be empty" when build.sbt has the setting? -

i want create debian bundle code written in scala sbt , sbt-native-package.

but when seek execute debian:package-bin in sbt console, receive error:

[trace] stack trace suppressed: run lastly debian:debiancontrolfile total output. [error] (debian:debiancontrolfile) packagedescription in debian cannot empty. utilize [error] packagedescription in debian := "my bundle description"

this strange, because in build.sbt have packagedescription setting follows:

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

i did tests using packagedescription := "testapp" or packagedescription in linux := "testapp" neither worked.

move line

packagearchetype.java_server

to after imports, not override settings.

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

scala sbt sbt-native-packager

No comments:

Post a Comment