|Re: [tycho-user] .target hierarchies|
As many people already answered, it's not possible to define inheritance between .target files. But Tycho can allow multiple .target file as input of the target-platform-configuration plugin: http://wiki.eclipse.org/Tycho/Target_Platform#Target_files , resulting in a target-platform based as a merge of various target definitions. However, this is a Tycho-specific mechanism that doesn't work in Eclipse IDE.
Another alternative, that we use in JBoss Tools, consists in a mechanism to define target definition as a merge of several targets. Code is here: https://github.com/jbosstools/jbosstools-maven-plugins/blob/master/tycho-plugins/target-platform-utils/src/main/java/org/jboss/tools/tycho/targets/MergeTargetsMojo.java and plugin is available on JBoss Nexus repository. Then your merged .target file can be deployed on an artifact manager and consumed later by other Maven builds, and you can even directly consume the file in your Eclipse IDE.
See an example of usage https://github.com/jbosstools/jbosstools-integration-stack/blob/master/target-platform/pom.xml#L116
Back to the top