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 don't know what version of tycho you are using, but even older versions of tycho respect slicer versus planner mode.

For an Update-site, all required dependencies must be RESOLVED even though they might not be INCLUDED. This has nothing to do with planner versus slicer, but in planner mode its your responsibility to provide all required dependencies.

Am 29.09.20 um 08:44 schrieb Gunnar Wagenknecht:

On Sep 29, 2020, at 07:11, Ed Merks <ed.merks@xxxxxxxxx> wrote:

Given you specify includeMode="slicer" (rather than includeMode="planner") and given that you don't specify in your slice, shouldn't you expect the target platform not to include

I thought so, too but apparently that is not the case. FWIW, the target file is generated from a tpd file.

I realized that my p2repository Maven project was not using any target platform at all. Thus, it should only see the things that are part of the same reactor. That's probably the reason why it fails. After changing the POM of the p2repository project to use set target file I posted things started working as expected.

It looks like Tycho ignores the slices/planner settings in the target file. However, it looks like p2 is not able to build the final repository as it wants to resolve all the required dependencies. Is there a way to disable that? <includeAllDependencies> is not set, i.e. it should default to false.


Back to the top