问题描述
我有一个更新站点,其中包含我的功能,例如:
I have an update site in which I'm including my features, like this:
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/my_feature1_1.0.0.qualifier.jar" id="my_feature1" version="1.0.0.qualifier">
<category name="My Category"/>
</feature>
<feature url="features/my_feature2_1.0.0.qualifier.jar" id="my_feature2" version="1.0.0.qualifier">
<category name="My Category"/>
</feature>
...
</site>
这些功能所包含的某些插件与我从其他更新站点下载的插件有依赖性,现在我必须在安装我的插件之前手动安装这些更新站点,以使其自动化,我可以下载并将这些依赖项包括到我的软件中site.xml,但最后.zip会包含它们,并且大小太大,是否可以将外部更新站点链接到我的站点,以便在安装更新站点期间自动下载该外部更新站点?
Some of the plugins included by those features have dependencies on plugins that I download from other updates sites, right now I have to manually install those update sites before installing mine, to automate this, I can download and include those dependencies to my site.xml but at the end the .zip will contain them and the size will be too big, is there a way to link an external update site to mine so it is automatically downloaded during the installation of my update site?
推荐答案
似乎有一个associateSitesURL
标记可为 site.xml 提供此行为.话虽如此,看来 site.xml 已被替换为 category.xml (例如,请参见),但我不知道该标签是否仍受支持.
It seems that there is a associateSitesURL
tag that provides this behavior for site.xml. That being said, it looks like site.xml has been replaced in favor of category.xml (see for instance this answer on SO) and I don't know whether this tag is still supported.
Vogella具有有关如何创建一个页面的部分.使用 category.xml 文件,您可以通过添加repository-reference
标记来指定其他更新站点.例如,将以下代码添加到 category.xml 文件中以引用Orbit更新站点:
Vogella has a section about how to create one. Using a category.xml file, you can specify an additional update site by adding a repository-reference
tag. For instance, add the following code to the category.xml file to reference an Orbit update site:
<repository-reference location="https://download.eclipse.org/tools/orbit/downloads/drops/R20170818183741/repository" enabled="true" />
还可以直接从 category.xml 文件编辑器指定URL:
The URL can also be specified directly from the category.xml file editor:
我没有找到任何相关文档,但是我在辅助项目中使用了它,并且它似乎按预期工作.
I failed to find any documentation on this but I used it in a side project and it seemed to work as expected.
这篇关于在Eclipse的更新站点中包括一个外部更新站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!