【问题标题】:Eclipse plugin development plugin requires second update site for installationEclipse 插件开发插件需要第二个更新站点进行安装
【发布时间】:2017-03-19 13:38:10
【问题描述】:

我正在 Eclipse 中开发一个插件,当您尝试将该插件添加到全新的 CDT 安装时,它会失败并出现以下错误:

Cannot complete the install because one or more required items could not be found.
  Software being installed: Sloeber 4.0.0.201611052308 (io.sloeber.feature.feature.group 4.0.0.201611052308)
  Missing requirement: Ui 4.0.0.201611052308 (io.sloeber.ui 4.0.0.201611052308) requires 'package org.eclipse.nebula.widgets.oscilloscope.multichannel 0.0.0' but it could not be found
  Cannot satisfy dependency:
    From: Sloeber 4.0.0.201611052308 (io.sloeber.feature.feature.group 4.0.0.201611052308)
    To: io.sloeber.ui [4.0.0.201611052308]

我知道我需要更新站点
http://download.eclipse.org/nebula/snapshot
因为这个包含我的插件所依赖的插件。

如果我将链接添加到“软件安装站点”,插件安装正常。
但是,我不希望用户在安装插件之前必须手动添加此链接。
为了解决这个问题,我已将 nebula url 添加到我的更新站点的 category.xml 中的“存储库属性”“附加存储库”中,并添加到我的 feature.xml 信息中的“要访问的站点”中,但无济于事。

所以我的问题是:如何添加指向其他更新站点的链接,以便可以一次性安装插件?

【问题讨论】:

  • 问题解决了吗?
  • 没有。我还没有找到解决办法。

标签: eclipse plugins installation


【解决方案1】:

解决方案是将这些额外的更新站点添加为功能,就像您使用自己的插件一样。这就是我的更新站点项目中现在的样子。

代码改动可见here

【讨论】:

    猜你喜欢
    • 2010-11-25
    • 2016-02-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多