Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho POM less not finding feature dependency in target platform

 I published a reproducible project at:
https://github.com/eclipseguru/eclipse-patching

Exporting the patch feature from File > Export works without issues.

I think there are two issues:

1. There is a requirement from the patch feature to the "feature to be patched". Such a requirement is ok but needs to be ignored when assembling a p2 repository. It's a requirement to check at installation time but it makes things complicated at build time.

2. The "feature to be patched" cannot be found when assembling the p2 repository. This is the error I reported earlier in the thread. The target platform *does* contain the feature. However I must explicitly add it to category.xml for making Tycho finding the feature. That seems wrong.

3. If the "plug-in to be patched" (org.eclipse.jdt.core in the example above) is part of the reactor Tycho seems to filter older versions from the target platform. I'm not sure what and why but the errors indicate so, i.e. as soon as I add org.eclipse.jdt.core to the 4_17/pom.xml the build starts failing that the older version (required by the "feature to be patched") cannot be found.

-Gunnar


-- 
Gunnar Wagenknecht
gunnar@xxxxxxxxxxxxxxx, http://guw.io/


> On Sep 29, 2020, at 18:02, Gunnar Wagenknecht <gunnar@xxxxxxxxxxxxxxx> wrote:
> 
> 
>> On Sep 29, 2020, at 10:11, Christoph Läubrich <laeubi@xxxxxxxxxxxxxx> wrote:
>> 
>> That means if you include a "thing" from the reactor (e.g a feature) then this will also be resolved, and I think at that step it simply fails, I'm not sure if it would be possible to disable this for features but wonder what the actual use-case would be for this (see above).
> 
> 
> For more context on what I'm trying to do:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=389698#c30
> 
> I wonder if https://git.eclipse.org/r/c/tycho/org.eclipse.tycho/+/169672 could help in this scenario.
> 
> 
> reactor -> target-platform -> org.eclipse.jdt.feature.group -> org.eclipse.jdt.core (3.23....)
>    \
>    patch-feature -> org.eclipse.jdt.core (3.24-SNAPSHOT)
> 
> 
> -Gunnar
> 
> -- 
> Gunnar Wagenknecht
> gunnar@xxxxxxxxxxxxxxx, http://guw.io/
> 
> 



Back to the top