Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Don't show incompatible entries from Update Site

Hi Juan,


Thanks for your quick reply!


I probably should have mentioned this in my original email…


I tried adding the OS and WS to the feature that should only be available on Windows, however then the Tycho build fails:


[INFO] ------------------------------------------------------------------------

[INFO] Building com.example.updatesite 1.0.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------


[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ com.example.updatesite ---

[INFO] Deleting D:\RMOB-1483\WorkspaceTestMultiplatform\com.example.updatesite\target


[INFO] --- tycho-packaging-plugin:0.20.0:build-qualifier-aggregator (default-build-qualifier-aggregator) @ com.example.updatesite ---

[INFO] The project's OSGi version is


[INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @ com.example.updatesite ---


[INFO] --- tycho-p2-publisher-plugin:0.20.0:publish-products (default-publish-products) @ com.example.updatesite ---

[INFO] Cannot complete the request.  Generating details.

[INFO] Cannot complete the request.  Generating details.

[INFO] {, osgi.os=linux, osgi.arch=x86, org.eclipse.update.install.features=true}

[ERROR] Cannot resolve project dependencies:

[ERROR]   Software being installed: com.example.updatesite raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT

[ERROR]   Missing requirement: com.example.updatesite raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT requires ' [1.0.0,1.0.1)' but it could not be found



(This is an example environment I created to quickly do some tests).


This build runs on a Windows machine. The parent POM has environments “linux gtk x86”, “linux gtk x86_64”, “win32 win32 x86” and “win32 win32 x86_64”.


Update Site ‘com.example.updatesite’ references feature ‘’. But when it calculates the dependencies for ‘, osgi.os=linux, osgi.arch=x86’, it misses ‘’ because it is then only available for OS=win32 and WS=win32.


I also tried to limit the OS/WS in the category.xml, but that does not seem to have any effect:


<?xml version="1.0" encoding="UTF-8"?>


   <feature url="features/com.example.feature.application_1.0.0.qualifier.jar" id="com.example.feature.application" version="1.0.0.qualifier"/>

   <feature url="features/com.example.feature.application.windows_1.0.0.qualifier.jar" id="" version="1.0.0.qualifier" os="win32" ws="win32"/>




Kind regards,


Marcel Romijn



From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Juan Antonio Gonzalez Cano
Sent: Tuesday, September 15, 2015 14:34 PM
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: Re: [tycho-user] Don't show incompatible entries from Update Site


hi, you can specify environments in your feature.xml


Imágenes integradas 1


Un Saludo


Juan Antonio González Cano

Software Engineer at OpenCanarias

Tenerife - Isla Canarias - España


2015-09-15 12:10 GMT+01:00 Marcel Romijn <mromijn@xxxxxxxxxxxxxxxxxx>:



We have a set of plugins and features that are published to an Update Site.

In the category.xml we specify two features which show up on the Update Site as installable entries.

The Update Site is built with Maven/Tycho and this all works fine.


However, one of the features provides functionality which is only available on Windows, because some of its plugins contain DLLs.

This feature is selectable, regardless of the Operating System the end-user is working on.

So on, e.g. Linux, that Windows specific feature is visible and selectable. What is worse, the feature actually installs, but (obviously) does not install the plugins with the DLLs as those contain platform filters.


Is it possible to hide the features on the Update Site when it is shown on Operating Systems that do not support it?




Marcel Romijn
Software Engineer
Rocket Software
Korte Parallelweg 1 • 3311 JN Dordrecht • Netherlands
Tel: +31 78 6322800 • Fax: +31 78 6138134
Email: mromijn@xxxxxxxxxxxxxxxxxx

Twitter FacebookYouTube LinkedIn



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 -

This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you.

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


Back to the top