【问题标题】:How to add Maven Dependencies to my OSGi Bundle Plug-in Dependencies?如何将 Maven 依赖项添加到我的 OSGi Bundle 插件依赖项?
【发布时间】:2013-11-12 19:37:33
【问题描述】:

我正在构建一个 e(fx)clipse 应用程序。 e(fx)clipse 基于 Equinox 的 osgi 包。我现在创建了一个包并进入他的 pom.xml 我有这个:

<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-guice</artifactId>
<version>1.2.2</version>
</dependency>

在我的插件(捆绑包)中,我想导入 shiro 捆绑包,但我不能!因为eclipse osgi框架无法检测到maven依赖作为插件。

如何自动将我的 Maven 依赖项添加到我的清单路径中,以便我可以将其导入到我的包中?

【问题讨论】:

    标签: eclipse eclipse-plugin maven-3 osgi-bundle


    【解决方案1】:

    转到 windows-preference-maven 并在启动时检查下载存储库索引更新并重新启动它以发生..

    如果您提交了损坏的下载,请通过

    删除它们
    find ~/.m2  -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;
    

    如果两者都不起作用try this

    【讨论】:

      猜你喜欢
      • 2018-09-20
      • 2013-09-23
      • 2012-11-28
      • 1970-01-01
      • 2012-04-20
      • 1970-01-01
      • 2012-01-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多