Bundle B and C both (transitively) require bundle A. Therefore that bundle needs to be in the target platform configured for both bundle B and C. (The target platform is configured via nomal Maven POM configuration, so you would usually configure the target platform for both modules in the same way by adding the configuration to the parent POM.)
In order to add an Eclipse plug-in/OSGi bundle from a Maven repository to the target platform, you need to configure the following:
- Declare a POM dependency to the plug-in/bundle (by adding
dependency
element with the artifacts GAV) Set
pomDependencies=consider
on Tycho'starget-platform-configuration
plugin:<plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <version>${tycho-version}</version> <configuration> <pomDependencies>consider</pomDependencies> </configuration> </plugin>
Note that the artifact from the Maven repository needs to be an Eclipse plug-in or OSGi bundle, i.e. it needs to have a correct OSGi manifest. For more details on pomDependencies=consider
, see this section of the target platform configuration documentation.