Thanks Rolf! I didn’t know about this possibility and it seems like it matches my goals.
Reading the comments, 378794 is blocked by 372780, but fortunately, Christoph and Mickael are both involved
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372780
😉
The bug describes a workaround for the problem which I understand, but I’m not sure how to integrate a feature patch into my build for producing an Eclipse product.
I suppose after I make the feature patch and deploy it to a combined P2 repo (as described in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=378794#c14), I would add it to the product file and the target definition. Would dependency resolution respect the dependency version in my
feature patch?
I’ll have to experiment with it, I suppose, but if anyone has used feature patches in an eclipse product that is being built for distribution, please let me know!
Thanks again, Rolf!
Tony Homer
From: tycho-user <tycho-user-bounces@xxxxxxxxxxx> on behalf of Rolf Theunissen <rolf.theunissen@xxxxxxxxx>
Reply-To: Tycho user list <tycho-user@xxxxxxxxxxx>
Date: Sunday, January 31, 2021 at 6:19 AM
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: Re: [tycho-user] is it possible to override version requirements?
However, today I wondered, is it somehow to possible to override the dependency requirements?
But in this case, the issue is really that the feature requires the "regular" version and Tycho won't change the feature. So even if you manage to hack the dependency resolution at build time, this resolution error you see now in Tycho
would still be likely to happen later for people trying to install...
So in this case, you'll need to tweak the org.eclipse.ecf.filetransfer.httpclient45.feature (or most likely build a fork of it) so it doesn't require this specific version of the bundle, but can use any version. This is usually possible
by replacing a direct <plugin> element (which mandates specific version) by a `<requires><import plugin="org.apache.httpcomponents.httpclient"/></requires>` which results in more open version range and would pick anyone that matches.
If you add the fixed bundle build and the "relaxed" feature build to your build, they should be used by the product instead of the ones from upstream, and it should then work; unless there is something else that requires the specific version
of feature or bundle.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/tycho-user