部署不支持嵌套的" bundleArgument"元件

时间:2015-07-30 05:11:08

标签: scala sbt sbt-native-packager

我正在为我的项目使用sbt-native-packager插件,但在运行fx:deploy doesn't support the nested "bundleArgument" element命令时收到错误jdkPackager:packageBin。任何人都可以帮助解决问题。提前谢谢。

我的build.sbt

  

name:=" packaging"

     

版本:=" 1.0"

     

scalaVersion:=" 2.11.7"

     

name:=" JDKPackagerPlugin示例"

     

版本:=" 0.1.0"

     

组织:=" com.test"

     

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

     编译中的

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

     

enablePlugins(JDKPackagerPlugin)

我的主要课程

 object MainClass extends App {

   println("Hello, World!!!") 
 }

我的插件.bt

  

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

1 个答案:

答案 0 :(得分:2)

从1.0.3开始,尚未通过sbt密钥直接支持此功能。您可以通过拦截/重新定义antBuildDefn task来解决它,以便在写出并传递给Ant之前将其他元素插入构建定义DOM中。

尽管如此,支持class Cars : SequenceType { var carList : [Car] = [] func generate() -> AnyGenerator<Car> { // keep the index of the next car in the iteration var nextIndex = carList.count-1 // Construct a GeneratorOf<Car> instance, passing a closure that returns the next car in the iteration return anyGenerator { if (nextIndex < 0) { return nil } return self.carList[nextIndex--] } } } 元素是一个理想的最终目标。我建议提交feature request(或更好,提交工作公关!)。

相关问题