Installing an additional feature during product bu

2019-06-01 07:21发布

问题:

When building a product based on Eclipse 3.7+, I want to include a marketplace feature (org.eclipse.epp.mpc). I don't want to explicitly add this feature to one of the product features because I am also building for Eclipse 3.5. Is there a way to add this feature during the build?

回答1:

It is currently not possible to create a product distribution which contains additional features, i.e. features which are not directly or indirectly referenced from the product. This enhancement was requested in this ticket, but is not available in the current Tycho version (0.16.0).

However there is the possibility to declare an optional greedy dependency to the marketplace feature from your product. Then, you could set up different target platforms in your build (through profiles) with (for 3.7) or without (for 3.5) the marketplace feature. With the optional greedy dependency, Tycho will then include the feature in the product installation in case it is available in the target platform.



标签: eclipse tycho p2