Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Forcing surefire to use a specified target platform

Hello Mickael,


You are right about the <repository>.


One of the parent pom had a number of repositories specified, amongst which there was a Kepler repository. That caused the 4.3.2 version to be included.

When we remove it, the unit test reports that it is running on a 4.2.2 platform.


Many thanks!




From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Mickael Istria
Sent: Wednesday, August 6, 2014 9:42 AM
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] Forcing surefire to use a specified target platform


On 08/06/2014 08:47 AM, Marcel Romijn wrote:

Since we have no compile errors in the Tycho compile phase, we assume the Target Platform is indeed configured correctly and active.

That's not very safe to assume that. The big majority of org.eclipse.* bundles are backward compatible, so even if you build artifacts compatible with Luna using artifacts from Mars, there are big chances that you succeed to build anyway.
Try a "mvn dependency:list" on your test bundle, it will show you the actual list of dependencies computed by Tycho. With the fully qualified version, you'll be able to see whether the stuff you get is actually the stuff you have in your target definition.
For surefire, the list of dependencies is visible in target/work/config/config.ini.

We have added a unit test to check the version of the ‘org.eclipse.platform’ plugin and that mentions version 4.3.2…

If Tycho gets org.eclipse.platform is version 4.3.2, it's either that this bundle is accessible via your target definition, or that you've added a <repository> containing this artifact, or referencing another repository containing it.
When building, Tycho logs the various sites it consumes, you should check that this lists conforms to your expectation.

Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ +1 800.966.3270 ■ +1 781.577.4321
Unsubscribe From Commercial Email – unsubscribe@xxxxxxxxxxxxxxxxxx
Manage Your Subscription Preferences -
Privacy Policy -

Back to the top