Jet
Jet

Reputation: 3288

Deploy doesn't support the nested "bundleArgument" element

I am trying with sbt-native-packager plugin for my project, but getting error fx:deploy doesn't support the nested "bundleArgument" element while running jdkPackager:packageBin command. Can anyone help in sorting out the issue. 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")

Upvotes: 1

Views: 102

Answers (1)

metasim
metasim

Reputation: 4960

As of 1.0.3, this isn't yet supported directly via an sbt key. You can work around it by intercepting/redefining the antBuildDefn task to insert additional elements into the build definition DOM before it's written out and passed to Ant.

That said, supporting the bundleArgument element is a desirable end goal. I suggest submitting a feature request (or better, submit a working PR!).

Upvotes: 2

Related Questions