How to get repository url and plugin id from marketplace for Eclipse plugin

為{幸葍}努か 提交于 2019-12-05 04:34:54

问题


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

In many cases a plugin only provides a marketplace Install button and no update site URL and no details on plugin id.

How can I get the update site URL and plugin id for such a plugin?


回答1:


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.



来源:https://stackoverflow.com/questions/38955255/how-to-get-repository-url-and-plugin-id-from-marketplace-for-eclipse-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!