diff --git a/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/TargetPlatformFactoryImpl.java b/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/TargetPlatformFactoryImpl.java index 82c410df41..34ac10e159 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/TargetPlatformFactoryImpl.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/TargetPlatformFactoryImpl.java @@ -33,6 +33,7 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; +import java.util.Objects; import java.util.Optional; import java.util.Set; @@ -264,8 +265,10 @@ public P2TargetPlatform createTargetPlatform(TargetPlatformConfigurationStub tpC return Optional.empty(); }).ifPresent(externalUIs::add); } - //add p2.inf items... - gatherP2InfUnits(project, externalUIs); + //add p2.inf extra units from all projects... + for (ReactorProject reactorProject : Objects.requireNonNullElse(reactorProjects, List. of())) { + gatherP2InfUnits(reactorProject, externalUIs); + } Map reactorProjectUIs = getPreliminaryReactorProjectUIs( reactorProjects);