Hello,
Last week our automatic tycho builds started failing with weird messages like the following:
[ERROR] C:\gwf\projects\svn\com.fugro.gwf\trunk\client_group\client\com.fugro.gwf.client.query\src\com\fugro\gwf\client\query\contentAssist\PathEditingSupport.java:[28,0]
[ERROR] KeyStroke keyStroke = KeyStroke.getInstance(SWT.CTRL, SWT.SPACE);
[ERROR] ^^^^^
[ERROR] SPACE cannot be resolved or is not a field
[ERROR] C:\gwf\projects\svn\com.fugro.gwf\trunk\client_group\client\com.fugro.gwf.client.query\src\com\fugro\gwf\client\query\ui\QueryBuilderUIParts.java:[19,0]
[ERROR] import org.eclipse.jface.window.ToolTip;
After some further analysis it became clear that a (unused!) org.eclipse.ui.internal.decorators dependency in our manifest was the culprit.
Somehow the dependency tree of the plugin is completely different when you add this dependency, and tycho doesn’t find some core swt and jface classes any more.
The attached files show the maven dependency tree with and without this dependency.
With the dependency there are many RAP related jars, and these important dependencies are missing:
p2.eclipse-plugin:org.eclipse.swt.win32.win32.x86_64:jar:3.102.0.v20130605-1544:system
p2.eclipse-plugin:org.eclipse.swt.win32.win32.x86:jar:3.102.0.v20130605-1544:system
p2.eclipse-plugin:org.eclipse.jface:jar:3.9.0.v20130521-1714:system
The key question is: why does the org.eclipse.ui.internal.decorators dependency break our build ??
Kind regards,
Fugro GeoConsulting
Erik Vande Velde
Senior Software Coordinator
Telephone: +32 (0)2 77 60 034 / Fax: +32 (0)2 77 60 319
E-mail: EvandeVelde@xxxxxxxx / Website: www.fugro.be
Address: Av. de Broqueville 12, 1150 Brussels, Belgium
VAT Nr: BE0418609636