Deployment does not support nested bundleArgument element

I try to use the sbt-native-packager for my project, but I get the fx:deploy doesn't support the nested "bundleArgument" element when running the jdkPackager:packageBin . Can someone help in sorting the problem. Thanks in advance.

My build.sbt

name: = "packaging"

version: = "1.0"

scalaVersion: = "2.11.7"

name: = "JDKPackagerPlugin example"

version: = "0.1.0"

organization: = "com.test"

libraryDependencies ++ = Seq ("com.typesafe"% "config"% "1.2.1")

mainClass in Compile: = Some ("com.test.packaging.MainClass")

enablePlugins (JDKPackagerPlugin)

My main class

  object MainClass extends App { println("Hello, World!!!") } 

My plugins .sbt

addSbtPlugin ("com.typesafe.sbt"% "sbt-native-packager"% "1.0.3")

+5
source share
1 answer

Starting with version 1.0.3, this is not yet supported directly using the sbt key. You can work around this by intercepting / redefining the antBuildDefn task to insert additional elements into the build DOM definition before it is written out and passed to Ant.

However, supporting the bundleArgument element is a desirable end goal. I suggest sending a request (or, better, sending a working PR!).

+2
source

All Articles