具有远程功能的本地更新站点
我想创建一个轻量级 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您提供可以指向一个或多个远程存储库的复合 p2 存储库,则可以聚合其他远程更新站点。在您的更新目录中,创建 2 个文件:
compositeArtifacts.xml:
compositeContent.xml:
然后您可以使用更新目录作为
帮助>安装新软件<的输入/代码>
You can aggregate other remote update sites if you provide a composite p2 repo that can point to one or more remote repos. In your update directory, create 2 files:
compositeArtifacts.xml:
compositeContent.xml:
Then you can use your update directory as input to
Help>Install New Software
您可以这样做,但必须通过存档将插件和功能添加到您的 site.xml 中。此外,重要的是不要更改名称并将功能所需的所有插件包含在存档路径中。下面是一个真实示例的片段:
如您所见,这包括来自 github 页面的功能添加的。
de.vonloesch.pdf4eclipse_1.0.1.jar
。此功能包括两个插件,它们也是通过这种方法的缺点是您必须手动包含该功能的任何更新版本,但我不这样做认为还有另一种可能性,包括外国特色。
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:
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.