How to get repository url and plugin id from marketplace for Eclipse plugin(如何从市场获取 Eclipse 插件的存储库 url 和插件 ID)
问题描述
我正在使用 vagrant 和 chef 为 Ubuntu 虚拟机提供 Eclipse 和 Eclipse 插件.所有插件都需要使用 equinox.p2 安装.下面是一个安装 Buildship 插件的例子:
I am provisioning Eclipse and Eclipse plugins to an Ubuntu Virtual Machine using vagrant and chef. All plugins need to be installed using equinox.p2. Here is an example of installing Buildship plugin:
eclipse -application org.eclipse.equinox.p2.director -noSplash -repository http://download.eclipse.org/buildship/updates/e46/releases/1.0 -installIUs org.eclipse.buildship.feature.group
eclipse -application org.eclipse.equinox.p2.director -noSplash -repository http://download.eclipse.org/buildship/updates/e46/releases/1.0 -installIUs org.eclipse.buildship.feature.group
在许多情况下,插件仅提供市场安装按钮,没有更新站点 URL,也没有插件 ID 的详细信息.
In many cases a plugin only provides a marketplace Install button and no update site URL and no details on plugin id.
如何获取此类插件的更新站点 URL 和插件 ID?
How can I get the update site URL and plugin id for such a plugin?
推荐答案
除非您拥有市场上的条目,否则此信息是隐藏的.但是,您可以使用市场 API 获取它.例如,通过在命令行上发出 curl http://marketplace.eclipse.org/node/364668/api/p
来获取 OS X Eclipse Launcher 的详细信息,您将获得所有XML 格式的详细信息.更新站点 URL 在 updateurl 中,功能在 ius 中列出.将数字替换为市场中条目的标识符.您可以通过查看分配给 Install 链接按钮的 URL 来找到它.
This information is hidden unless you own the entry on the marketplace. However you can obtain it using the marketplace API. For instance getting the details on the OS X Eclipse Launcher, by issuing curl http://marketplace.eclipse.org/node/364668/api/p
on the command line and you'll get all the details in the form of XML. The update site URL is in updateurl, and the feature(s) are listed in ius. Replace the number with the identifier of the entry in the marketplace. You can find it by looking at the URL assigned to the Install link button.
这篇关于如何从市场获取 Eclipse 插件的存储库 url 和插件 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何从市场获取 Eclipse 插件的存储库 url 和插件 ID


- 如何使用WebFilter实现授权头检查 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01