Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Adding discovery sites to p2 repository

I'd consider it a bug in Tycho that additional repository references in category.xml are lost when publishing in packaging type eclipse-repository.
Probably similar root cause as https://bugs.eclipse.org/bugs/show_bug.cgi?id=341744

Regards
Jan






On 26/04/16 18:10, "tycho-user-bounces@xxxxxxxxxxx on behalf of Greg Watson" <tycho-user-bounces@xxxxxxxxxxx on behalf of g.watson@xxxxxxxxxxxx> wrote:

>It seems strange that this functionality isn’t available in tycho, but thanks for the pointer! This looks exactly like what we need.
>
>Thanks,
>Greg
>
>> On Apr 25, 2016, at 9:54 PM, Nick Boldt <nickboldt@xxxxxxxxx> wrote:
>> 
>> There's a mojo we use for JBoss Tools which can add repository
>> references to an update site's content.xml: .
>> 
>> https://github.com/jbosstools/jbosstools-maven-plugins/tree/master/tycho-plugins/repository-utils
>> 
>> See the example in the readme. You just need to add the config that
>> provides associateSites:
>> 
>>                        <associateSites>
>> 
>> <site>http://download.server.org/path/to/updates/</site>
>> 
>> <site>http://download.server.org/path/to/more/updates/</site>
>>                        </associateSites>
>> 
>> Hope that helps,
>> 
>> Nick
>> 
>> On Mon, Apr 25, 2016 at 4:40 PM, Greg Watson <g.watson@xxxxxxxxxxxx> wrote:
>>> Hi,
>>> 
>>> We have a repository that has dependencies on content from other repositories. We don’t want to enable includeAllDependencies because this just creates a massive repository and makes updates difficult. We don’t want to use a composite repository because the dependencies get shown to the user. We would like the dependent repositories to be added to the content.xml using the <references> and <repository> elements.
>>> 
>>> From what I’ve been able to determine by scouring the web, the eclipse-repository packaging type does not copy either the <repository-reference> entries from the category.xml file nor the <discovery> entries from the feature.xml into the content.xml. I’ve also tried adding a p2.inf file with addRepository touchpoint commands, but these don’t seem to be added either.
>>> 
>>> The only way I have been able to get this to work is to resort to the old eclipse-update-site packaging type and use a site.xml file.
>>> 
>>> Is anyone able to confirm:
>>> 
>>> a) the current eclipse-repository packaging type does not provide any way to do this; and
>>> b) the only way to do it (without resorting to ant scripts) is using an eclipse-update-site.
>>> 
>>> Any other suggestions appreciated.
>>> 
>>> Thanks
>>> Greg
>>> _______________________________________________
>>> tycho-user mailing list
>>> tycho-user@xxxxxxxxxxx
>>> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>> 
>> 
>> 
>> -- 
>> Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
>> http://nick.divbyzero.com
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>_______________________________________________
>tycho-user mailing list
>tycho-user@xxxxxxxxxxx
>To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>https://dev.eclipse.org/mailman/listinfo/tycho-user

Back to the top