Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Multiple repositories at the same location

In this situation the difficulty is to determine, given a set of potential candidate, which one is best. For example if I have a Maven repo, and a p2 repo in the same place, which one should I go for? Today we have a special case with some sorting to handle a similar situation with a site that contains a site.xml and content.jar, but I'm not sure how to generalize this without having everybody say that their repo is more important than everybody else's one :)

One solution that I just thought about could be to have the owner of the site express its preference for its users. After all, he is the one making several repos available so he should know what is best :-).

Another idea we toyed around in the early days was to specify the URI of the repo file instead of the folder, and then let the manager through some kind of content type like detection see if it can handle it. This way there was no guessing to be done. This had the advantage of being clear about what you would t, but had the drawback that if you could have had to give several URLs to your clients depending on the kind of repo handler they had available.

In addition to the bug mentioned by Susan, there is also the ancient https://bugs.eclipse.org/bugs/show_bug.cgi?id=177231

Inactive hide details for "Ian Bull" ---21/10/2008 06:27:16 PM--->From what I understand there was some discussion around havin"Ian Bull" ---21/10/2008 06:27:16 PM--->From what I understand there was some discussion around having multiple repositories at the same lo


From:

"Ian Bull" <irbull@xxxxxxxxx>

To:

p2-dev@xxxxxxxxxxx

Date:

21/10/2008 06:27 PM

Subject:

[p2-dev] Multiple repositories at the same location




>From what I understand there was some discussion around having multiple repositories at the same location, however, it doesn't look like this is currently supported. For example, I may wish to register my own repository (ComplexMetadataRepository), although if I add http://eclipse.org/foo, the SimpleMetadataRepository will try and connect here and if it succeeds, my Repository will never get used.

Does anyone on the p2 team have thoughts on this?

cheers,
Ian

--
R. Ian Bull, PhD
Software Developer, Code 9

http://www.ianbull.com
http://blog.ianbull.com_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev


GIF image

GIF image


Back to the top