[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
- From: John Arthorne <arthorne.eclipse@xxxxxxxxx>
- Date: Tue, 31 May 2011 16:42:16 -0400
- Delivered-to: firstname.lastname@example.org
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=GsYRHHMioqYVUJRE/4YxCZsaXcf+ndaa1FT2BhjAtDeND+F2VHoCOvsZ7/zuTKsbNr i8whuws6Ox3v1/W0nWCXZYtnnKqUjx+pUeqy9ObafV6xGbPZC0Oc79qBTrHB26C4FgDj uCzjNFdA/LNdW+QXIPB8RwbnKQU2O/EqYFPcc=
It's hard to say because I don't know anything about Tycho or the rest of your build process. The p2 publisher will take site references from feature.xml, and/or instructions from a p2.inf file to add additional repository references. However if you're not running the right p2 publisher task in your build it won't happen. Although inconvenient I don't see a problem with manually adding the references to content.xml as you describe.
On Tue, May 31, 2011 at 12:27 PM, Greg Amerson <gregory.amerson@xxxxxxxxxxx>
Any ideas? I guess it would not be hard to write a script to unzip the content.jar, edit the contents of content.xml to add the references and rezip it, but I just wanted to make sure there wasn't a better way to do this directly with p2.
On Wed, May 25, 2011 at 5:26 PM, Greg Amerson <gregory.amerson@xxxxxxxxxxx>
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
Liferay, Inc. (#liferay
p2-dev mailing list