在Eclipse的更新站点中包括一个外部更新站点 [英] Include an external update site in my update site in Eclipse

查看:157
本文介绍了在Eclipse的更新站点中包括一个外部更新站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个更新站点,其中包含我的功能,例如:

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具有

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的更新站点中包括一个外部更新站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆