[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [p2-dev] how to add <repository /> element to <references /> in content.xml
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.
On Wed, May 25, 2011 at 4:23 PM, Greg Amerson <gregory.amerson@xxxxxxxxxxx>
How do you specify additional update-sites in feature.xml? Do you just add <discovery /> urls under the <url> element in feature.xml?
Liferay, Inc. (#liferay