Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] is it possible to override version requirements?

Hi,

Isn't this where Feature patches are intended for? "A Feature Patch Project can contain plug-ins which replace existing plug-ins.", see https://www.vogella.com/tutorials/EclipsePatching/article.html or https://eclipsesource.com/blogs/2012/07/30/patching-your-own-eclipse-ide/
Though feature patches are not well supported by Tycho, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=378794

Best Regards,
Rolf


Op zo 31 jan. 2021 om 00:06 schreef Mickael Istria <mistria@xxxxxxxxxx>:
Hi,

On Sat, Jan 30, 2021 at 11:28 PM Homer, Tony <tony.homer@xxxxxxxxx> wrote:

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.

HTH
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user

Back to the top