So, I have been using an 'aggregator' POM - which basically defines all the modules to execute - and has its parent defined as the POM which contains the maven-tycho-plugin and target configuration. I run 'mvn install' on this project to perform my build. It works with <repository> defined in parent but not when I try to use *target.
<parent>
<groupId>com.xxx</groupId>
<artifactId>com.xxx.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../com.xxx.parent</relativePath>
</parent>
<groupId>com.xxx</groupId>
<artifactId>com.xxx.build.aggregator</artifactId>
<packaging>pom</packaging>
<modules>
<module>com.xxx.build.target</module>
<module>com.xxx.doc</module>
<module>com.xxx.core</module>
<module>com.xxx.config</module>
<module>com.xxx.feature</module>
<module>com.xxx.product</module>
</modules>
For my target project - the POM looks as follows:
<parent>
<groupId>com.xxx</groupId>
<artifactId>com.xxx.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../com.xxx.parent</relativePath>
</parent>
<groupId>com.xxx</groupId>
<artifactId>com.xxx.build.target</artifactId>
<packaging>eclipse-target-definition</packaging>