具有远程功能的本地更新站点 [英] Local update site with remote features

查看:172
本文介绍了具有远程功能的本地更新站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个轻量级的eclipse更新站点,只会引用远程更新站点中的功能或插件,以便我的团队有一个入口点来安装和更新我们用于某些程序的所有常见插件项目。

I would like to create a lightweight eclipse update site that would only reference to feature or plugins in remote update sites, in order to have a single entry point for my team to install and update all the common plugins that we use for some projects.

但是我没有找到一种方法来引用这些外部功能/插件。我已经创建了一些对外部更新站点的归档映射,但是在构建更新站点时它会不断下载所有工件。

But I don't find a way to reference these external features/plugins. I've create some archive mapping to the external update sites, but it keeps downloading all the artifacts when building the update site.

有没有办法防止这样做我们在本地只有描述符?

Is there a way to prevent that so that we just have the descriptor locally?

推荐答案

你可以这样做,但你必须通过档案将插件和功能添加到你的的site.xml 。此外,重要的是不要更改名称并包含归档路径中功能所需的所有插件。这是一个真实的例子:

You can do that but you have to add the plugins and features via archives to your site.xml. Furthermore, it is important to not change the names and to include all plugins that are needed by a feature in the archive path. Here is a snippet of a real example:

<feature url="http://borisvl.github.com/Pdf4Eclipse/features/de.vonloesch.pdf4eclipse_1.0.1.jar" id="de.vonloesch.pdf4eclipse" version="1.0.1">
  <category name="Pdf4Eclipse"/>
</feature>

<archive path="features/de.vonloesch.pdf4eclipse_1.0.1.jar" url="http://borisvl.github.com/Pdf4Eclipse/features/de.vonloesch.pdf4eclipse_1.0.1.jar"/>
<archive path="plugins/de.vonloesch.pdf4Eclipse_1.0.1.201111161450.jar" url="http://borisvl.github.com/Pdf4Eclipse/plugins/de.vonloesch.pdf4Eclipse_1.0.1.201111161450.jar"/>
<archive path="plugins/de.vonloesch.pdf4eclipse.help_1.0.0.201111161450.jar" url="http://borisvl.github.com/Pdf4Eclipse/plugins/de.vonloesch.pdf4eclipse.help_1.0.0.201111161450.jar"/>

正如你所看到的,这包括功能 de.vonloesch.pdf4eclipse_1.0.1 .jar 从github页面。此功能包括两个插件,它们也通过< archive ... />。

As you can see this includes the feature de.vonloesch.pdf4eclipse_1.0.1.jar from a github page. This features includes two plugins which were also added via <archive ... />.

这种方法是您必须手动添加功能的任何更新版本,但我不认为还有另一种可能性可以包含外来功能。

The downside of this approach is that you must include any updated version of the feature by hand, but I do not think there is another possibility to include a foreign feature.

这篇关于具有远程功能的本地更新站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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