Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Configuration to use a target definition file and still being able to build individual bundles

Thanks Alex, that might work. If A is available in the local repo, B can be build. While this still requires a  setting in the aggregator, at least it is a good workaround. 

Using p2 update sites makes this problem go away BTW, p2 updates can be defined in the parent pom and don't require an additional project. Strange to me that the target definition file creates this restriction.

Best regards, Lars

2014-08-14 1:17 GMT+02:00 Alex Blewitt <alex.blewitt@xxxxxxxxx>:
On 14 Aug 2014, at 00:05, Lars Vogel <lars.vogel@xxxxxxxxx> wrote:

> Hi,
> I'm would like to use a target definition file and still being able to build individual bundles. Currently this does not work for me.
> Here is my setup:
> Project T - Contains target definition file
> Project parent - contains the configuration using T to define the target platform
> <plugin>
>       <groupId>org.eclipse.tycho</groupId>
>               <artifactId>target-platform-configuration</artifactId>
>               <version>${tycho.version}</version>
>               <configuration>
>                       <!-- This defines the target definition file -->
>                               <target>
>                                       <artifact>
>                                                 <!-- This points to T  -->
>                                               <groupId>com.vogella.tychoexample</groupId>
>                                               <artifactId></artifactId>
>                                               <version>1.0.0-SNAPSHOT</version>
>                                               </artifact>
>                                       </target>
>                       </configuration>
>                 </plugin>
> Now I have Project A which uses Project parent as parent POM. If I run the build for A, T is not in the Maven reactor and Tycho cannot resolve the target definition.
> Workaround: I can solve this with an aggregator project which lists all these projects as modules  but I would like to keep the ability to build my bundles individually.
> Any suggestions / examples how to use target platform definition files but still being able to build individual bundles?

If you have bundles that are unrelated to each other, then you can conditionally add the modules through a profile. However this probably won’t work if you have B->A and you only want to build B.

Something like this would work:

You can then invoke with mvn -Pone -Ptwo or you can have the profile enabled when a system property is set e.g. -Dui or -Dheadless

tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top