When you create a product installation, the p2 director needs to resolve all transitve dependencies of the product. However by default, the p2 repository built in an eclipse-repository module (usually at target/repository/
) only aggregates the included content.
Since you are saying that the units created via the p2.inf are missing in the target/repository/
p2 repository, they are probably not included in the features but only referenced as dependency. Although you could also change the p2.inf to generate inclusions, this is probably not the easiest solution.
Instead, simply configure the tycho-p2-repository-plugin to aggregate not only inclusions but all dependencies:
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
</plugins>
</build>
Then, it shouldn't matter if you have the tycho-p2-director-plugin install directly from the target platform or from the aggregated p2 repository.