【问题标题】:Sbt add to PluginClassPath from consuming project.Sbt 从消费项目添加到 PluginClassPath。
【发布时间】:2015-12-10 19:05:40
【问题描述】:

我正在使用从 git 构建的 sbt-osgi,我正在尝试通过 bnd 标头加载 bnd 插件 jar。

附加标题 := 地图( "-buildpath" -> "org.apache.felix.dependencymanager.annotation.jar", "-plugin" -> "org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin")

我是否可以插入 sbt 类加载器,或者我将不得不分叉 sbt-osgi ?

【问题讨论】:

    标签: sbt osgi bnd


    【解决方案1】:

    结果很简单,-buildpath 标志根本不需要。您只需要使用 libraryDependencies 设置键将 libraryDependency 添加到 plugins.sbt 中的类路径上所需的任何库。瞧。

    【讨论】:

      猜你喜欢
      • 2013-05-28
      • 1970-01-01
      • 2017-05-16
      • 2019-04-11
      • 1970-01-01
      • 2010-09-22
      • 2013-12-11
      • 2020-01-20
      • 1970-01-01
      相关资源
      最近更新 更多