【问题标题】:Deploy doesn't support the nested "bundleArgument" elementDeploy 不支持嵌套的“bundleArgument”元素
【发布时间】:2015-10-21 07:51:11
【问题描述】:

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

我的 build.sbt

名称:=“包装”

版本 := "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")

启用插件(JDKPackagerPlugin)

我的主要课程

 object MainClass extends App {

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

我的插件.sbt

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

【问题讨论】:

    标签: scala sbt sbt-native-packager


    【解决方案1】:

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

    也就是说,支持bundleArgument 元素是一个理想的最终目标。我建议提交feature request(或者更好的是,提交有效的 PR!)。

    【讨论】:

    猜你喜欢
    • 2015-10-27
    • 2016-12-16
    • 1970-01-01
    • 2018-11-09
    • 1970-01-01
    • 1970-01-01
    • 2023-01-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多