The Object Teams Blog

Adding team spirit to your objects.

Compiling OT/Equinox projects using Tycho

with 3 comments

In a previous post I showed how the tycho-compiler-jdt Maven plug-in can be used for compiling OT/J code with Maven.

Recently, I was asked how the same can be done for OT/Equinox projects. Given that we were already using parts from Tycho, this shouldn’t be so difficult, right?

Once you know the solution, finding the solution is indeed easy, also in this case. Here it is:

We use almost the same declaration as for plain OT/J applications:


So, what’s the difference? In both cases we need to adapt the tycho-compiler-jdt plug-in because that’s where we replace the normal JDT compiler with the OT/J variant. However, for plain OT/J applications tycho-compiler-jdt is pulled in as a dependency of maven-compiler-plugin and must be adapted on this path of dependencies, whereas in Tycho projects tycho-compiler-jdt is pulled in from tycho-compiler-plugin. Apparently, the exclusion mechanism is sensitive to how exactly a plug-in is pulled into the build. Interesting.

Once I figured this out, I created and published a new version of our Maven support for Object Teams: objectteams-parent-pom:2.1.1 — publishing Maven support for Object Teams 2.1.1 was overdue anyway 🙂

With the updated parent pom, a full OT/Equinox hello world pom now looks like this:

<project xmlns=""
            <name>Object Teams Repository</name>
            <name>Eclipse Juno Repository</name>

Looks pretty straight forward, right?

To see the full OT/Equinox Hello World Example configured for Maven/Tycho simply import as a project into your workspace.



Written by Stephan Herrmann

October 31, 2012 at 00:16

3 Responses

Subscribe to comments with RSS.

  1. I’m sorry to bother you this way, but I just leave a URL here for your convenience..maybe it’s of some use to you.


    December 4, 2012 at 21:37

  2. @Morton: thanks for the pointer, but, well, indeed your notice is a bit out of context here 🙂

    So, what do you think I should do about the SO discussion?

    Feel free to chime in on any of these bugs:
    JDT/Core [resource] bugs


    December 4, 2012 at 21:47

  3. Support for OT/J version 2.3.0 has been uploaded as org.eclipse.objectteams:objectteams-parent-pom:2.3.0 (note the change in the groupId).
    It seems for this to work you have to specifically use version 0.20.0 of org.eclipse.tycho:tycho-maven-plugin


    June 15, 2014 at 17:44

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: