Validate Eclipse product file using Maven/Tycho #4028
Replies: 3 comments 10 replies
-
If a product is "valid" can't be determined, even if there are some missing dependencies it might be intentional. |
Beta Was this translation helpful? Give feedback.
-
A feature being complete is a separate aspect from a product being complete. A product might include two features, both of which are incomplete but the union of the two is complete. E.g, two features F1 and F2 might transitively both require bundles X and Y but one includes only X and other only Y. The product including F1 and F2 would be complete but neither feature is complete. It's just not entirely clear what exactly you are trying to achieve and more importantly why you are trying to achieve. Maybe you perceive feature completeness to be a solution to some problem that is likely solved in some other way or is not actually even a problem. Most of the Eclipse SDK's features are not complete in the sense you are describing without that actually being a problem.... |
Beta Was this translation helpful? Give feedback.
-
So just to clarify, assume you have a product and it contains one feature and that includes one bundle then Tycho will build a minimal product that only includes what the bundle requires, so no manual maintaining is required. Furthermore assume there is an updatesite and it contains one feature and that includes one bundle and you install it into an exiting IDE/Product, P2 will install this bundle and includes what the bundle requires, so no manual maintaining is required. So you can only control what is minimal installed not what is installed in total... The same thing can be archived when building an updatesite with varying degrees of "size" e.g. using references to existing sites. |
Beta Was this translation helpful? Give feedback.
-
I'm working on an RCP application that uses a feature based product file and I would like to know if it possible to validate the product file with the same function as in the PDE UI. In the product file editor it is the “validate…” icon in the tool bar. I would like to have the Tycho build to fail if the product does not validate. (Fail early principle). So far I haven't found any solutions, I know there is org.eclipse.tycho.extras/target-platform-validation-plugin specifically for the target platform validation but is there anything similar to validate a product file and have the Tycho build fail if there any missing plugins/dependencies in the product? Here's an example of my pom.xml file -
I tried adding
<phase>verify</phase>
to materialize-products goal as per some suggestions I found but that didn't help either.Is this something that can be achieved?
Beta Was this translation helpful? Give feedback.
All reactions