Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Probably dumb question: How do I determine p2 url for plugin from marketplace?
Probably dumb question: How do I determine p2 url for plugin from marketplace? [message #1808707] Fri, 28 June 2019 22:50 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
I'm using 2019-06, and I'm starting to experiment with building an Oomph profile for my current configuration. I'm following the instructions at https://wiki.eclipse.org/Eclipse_Oomph_Authoring .

The section on installing plugins has this statement:

3. in the Properties of the Repository set the URL to a valid p2 repo (e.g. http://update.eclemma.org) 


This seems trivial, but how exactly do I determine the p2 URL for any particular plugin? In my setup, I'm going to be installing some plugins from the predefined update sites (Docker tooling, for instance), some third-party plugins (Spring IDE, Groovy, MoreUnit, and a couple of others). I'm installing most of the third-party plugins from the Marketplace. For any particular marketplace plugin, how do I determine what the p2 repository URL is?
Re: Probably dumb question: How do I determine p2 url for plugin from marketplace? [message #1808709 is a reply to message #1808707] Sat, 29 June 2019 06:55 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
I know of no trivially easy way, but this does work:

1) Open the marketplace solution page in your browser, e.g., https://marketplace.eclipse.org/content/cdo-model-repository
2) Hover the "Install" button and note the URL, e.g., http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=573
3) Change the browser address to http://marketplace.eclipse.org/node/[mpc_install]/api/p and change [mpc_install] to the number from at the end of 2), e.g., http://marketplace.eclipse.org/node/573/api/p
4) In the resulting XML page search for the <updateurl> element. It contains the address of the p2 repository.

Note that the <iu> elements contain the feature names in that p2 repository, but it appears that you need to suffix them with ".feature.group" if you want to use them in p2 Director requirements.


Re: Probably dumb question: How do I determine p2 url for plugin from marketplace? [message #1808711 is a reply to message #1808709] Sat, 29 June 2019 09:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
FYI, I'm working on a drag-and-drop solution to automate the creation of a p2 task (and/or to update a p2 task) simply by dragging the same install URL into the setup editor. It's mostly working already but Git/Gerrit is down again...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Probably dumb question: How do I determine p2 url for plugin from marketplace? [message #1816999 is a reply to message #1808709] Wed, 13 November 2019 14:46 Go to previous messageGo to next message
sri pamarti is currently offline sri pamartiFriend
Messages: 19
Registered: August 2015
Junior Member
Thank you very much.
Re: Probably dumb question: How do I determine p2 url for plugin from marketplace? [message #1817007 is a reply to message #1816999] Wed, 13 November 2019 16:34 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Note that drag and drop now works. I.e., you can drag a URL such as https://marketplace.eclipse.org/content/viplugin and drop it into a setup editor. The URL "induces" a resource with a Macro containing a p2 task with the appropriate update sites and IUs...


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Upgrading install to 2019-12
Next Topic:recommended way to reset all user preferences
Goto Forum:
  


Current Time: Thu Apr 25 10:50:09 GMT 2024

Powered by FUDForum. Page generated in 0.03439 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top