Eclipse plugin 安装具有依赖项的插件时,是否自动安装所需的插件?

Eclipse plugin 安装具有依赖项的插件时,是否自动安装所需的插件?,eclipse-plugin,Eclipse Plugin,我正在开发一个依赖CodePro和Sonar插件的插件。我在插件清单编辑器的“必需插件”部分添加了这些插件。 当我尝试在一个新的Eclipse实例上安装插件时,我得到了一个错误:“缺少需求:XYZ插件需要bundle'ABC',但找不到它。”。 是否要求用户在安装我的插件之前必须手动安装这些必需的插件? 或者,有没有一种方法可以让Update Manager在我使用之前自动下载并安装这些必需的插件? 如果有办法,我该怎么做?我读了很多很多文章、博客和论坛,但没有得到明确的回应。 非常感谢您的帮助

我正在开发一个依赖CodePro和Sonar插件的插件。我在插件清单编辑器的“必需插件”部分添加了这些插件。 当我尝试在一个新的Eclipse实例上安装插件时,我得到了一个错误:“缺少需求:XYZ插件需要bundle'ABC',但找不到它。”。 是否要求用户在安装我的插件之前必须手动安装这些必需的插件? 或者,有没有一种方法可以让Update Manager在我使用之前自动下载并安装这些必需的插件? 如果有办法,我该怎么做?我读了很多很多文章、博客和论坛,但没有得到明确的回应。
非常感谢您的帮助。

p2将按照插件依赖关系安装所有必需的插件(或功能,具体取决于配置的内容)。如果使用
Help>Install New Software
,则所有插件的更新站点都必须可用,并且必须选中“在安装过程中联系所有更新站点以查找所需的软件”

使用命令行p2控制器时,必须在该命令行上列出所需的所有更新站点。例:

eclipse/eclipse \
-application org.eclipse.equinox.p2.director \
-noSplash \
-repository \
http://download.eclipse.org/egit/updates-nightly,\
http://download.eclipse.org/e4/updates/0.12-I-builds,\
http://download.eclipse.org/releases/juno,\
file://$HOME/eclipseUpdate \
-installIUs \
org.eclipse.egit.feature.group,\
org.eclipse.egit.source.feature.group,\
org.eclipse.jgit.feature.group,\
org.eclipse.jgit.source.feature.group,\
org.eclipse.egit.fetchfactory.feature.group,\
org.eclipse.emf.sdk.feature.group,\
org.eclipse.xtext.sdk.feature.group,\
org.eclipse.wst.xml_ui.feature.feature.group,\
org.eclipse.pde.api.tools.ee.feature.feature.group,\
org.eclipse.e4.core.tools.feature.feature.group,\
org.eclipse.e4.tools.css.spy.feature.feature.group,\
org.eclipse.e4.tools.css.editor.feature.feature.group

打开功能清单编辑器,转到信息选项卡,转到要访问的站点子选项卡。为插件依赖的插件添加所有更新站点。安装插件时,请选中“在安装过程中联系所有更新站点以查找所需软件”选项。

谢谢,Paul。我找到了另一个不使用命令行的解决方案。