For full context for the reason why I'm asking is I'm trying to use tycho to
create an updatesite.  However, I need to make sure that the content.xml has
some additional referenced repositories (Sapphire, Graphiti update-sites)
without the user having to manually add 2 updatesites to install my plugins.


At first I tried the eclipse-repository tycho package type.  However, I
didn't know how to get the additional repos into content.xml.  Then I tried
the other packaging type for tycho eclipse-update-site which runs
UpdateSitePublisher.  I knew that with that program you could use
associateSitesURL attribute to get the additional repos into content.xml.
 The problem with this approach is that Tycho can not yet use a co-located
assocaite-sites.xml where you store your additional repos in a xml file that
is in the same updatesite eclipse project.  There is a bug for this that I
have open but it is still open.

I've read from Tycho team that eclipse-repository packaging type (which
doesn't use site.xml) is the future and I wanted to go towards that but have
no idea how to get the referenced repositories into content.xml

John, I've tried adding additional discovery urls to my feature.xml but that
doesn't seem to cause the eclipse-repository created by tycho have the
correct output.  I think that tycho eclipse-repository package type uses the
p2 mirror application but I'm not 100%.  Regardless using discovery urls +
tycho-p2-repository-plugin(p2 mirror application) doesn't seem to do the
trick.

Thoughts?

On Wed, May 25, 2011 at 4:23 PM, Greg Amerson
<[email protected]>wrote:

> How do you specify additional update-sites in feature.xml?  Do you just add
> <discovery /> urls under the <url> element in feature.xml?
>
>
> On Wed, May 25, 2011 at 3:22 PM, John Arthorne <[email protected]
> > wrote:
>
>> You can also add an update site reference to a feature.xml file. This will
>> be converted into a repository reference by the p2 publisher. Finally you
>> can use a p2.inf file in a product to specify the repository location for
>> that product. There is an excellent introduction to that here:
>>
>>
>> http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial/#add_selfupdate_to_the_application
>>
>> John
>>
>>
>>
>> On Wed, May 25, 2011 at 1:20 PM, Greg Amerson <
>> [email protected]> wrote:
>>
>>> Hello all,
>>>
>>> What is the official way to add repository elements the <references />
>>> list in content.xml?  I know at least one way is to have UpdateSitePublisher
>>> run on a old-style site.xml file that specifies an associateSitesURL
>>> attribute that points to a local associate-sites.xml file.  Is there a way
>>> to accomplish this without using an old-style site?
>>>
>>> Thanks!
>>>
>>> --
>>> Greg Amerson (@greg_amerson <http://twitter.com/greg_amerson>)
>>> Liferay, Inc. (#liferay <http://twitter.com/#%21/search/%23liferay>)
>>>
>>> _______________________________________________
>>> p2-dev mailing list
>>> [email protected]
>>> https://dev.eclipse.org/mailman/listinfo/p2-dev
>>>
>>>
>>
>> _______________________________________________
>> p2-dev mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/p2-dev
>>
>>
>
>
> --
> Greg Amerson (@greg_amerson <http://twitter.com/greg_amerson>)
> Liferay, Inc. (#liferay <http://twitter.com/#!/search/%23liferay>)
>



-- 
Greg Amerson (@greg_amerson <http://twitter.com/greg_amerson>)
Liferay, Inc. (#liferay <http://twitter.com/#!/search/%23liferay>)
_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev

Reply via email to