Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Target platform picks up old feature, despite feature patch being applied

Hi all,

I am currently trying to set up a Tycho build with a target plaform of
"Kepler SR2 + Java 8 Support" [1]

Previously, my target platform contained the following:

> <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
> <unit id="org.eclipse.sdk.ide" version="0.0.0"/>
> <unit id="org.eclipse.emf.feature.group" version="0.0.0"/>
> <unit id="org.eclipse.equinox.p2.discovery.feature.feature.group" version="0.0.0"/>
> <unit id="org.eclipse.jgit.feature.group" version="0.0.0"/>
> <unit id="org.eclipse.jgit.source.feature.group" version="0.0.0"/>
> <unit id="org.eclipse.epp.package.standard.feature.feature.group" version="0.0.0"/>
> <unit id="org.eclipse.emf.ecore.xcore.sdk.feature.group" version="0.0.0"/>
> <unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0"/>
> <unit id="org.eclipse.mylyn.context.sdk.feature.group" version="0.0.0"/>
> <unit id="org.eclipse.mylyn.commons.sdk.feature.group" version="0.0.0"/>
> <unit id="org.eclipse.mylyn.sdk_feature.feature.group" version="0.0.0"/>
> <!-- Stable repository for Kepler SR2. -->
> <repository location="http://download.eclipse.org/releases/kepler/"/>
> </location>

Now, it also contains the feature patch's repository.

> <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
> <unit id="org.eclipse.jdt.java8patch.feature.group" version="0.0.0"/>
> <unit id="org.eclipse.jdt.a2.java8patch.feature.group" version="0.0.0"/>
> <!-- Java 8 Support for Kepler. -->
> <!-- See <http://wiki.eclipse.org/JDT/Eclipse_Java_8_Support_For_Kepler>. -->
> <repository location="http://download.eclipse.org/eclipse/updates/4.3-P-builds/P20140317-1600/"/>
> </location>

Setting this target platform in PDE works fine. The JDT bundles I see
are 3.9.50 rather than the old 3.9.2 (of Kepler SR2).

Alas, my Tycho build fails with the following error message:

> [INFO] {osgi.os=macosx, osgi.ws=cocoa, org.eclipse.update.install.features=true, osgi.arch=x86_64}
> [ERROR] Cannot resolve project dependencies:
> [ERROR]   Software being installed: org.eclipse.recommenders.mylyn.rcp.feature.feature.group 2.2.0.qualifier
> [ERROR]   Missing requirement: org.eclipse.jdt.feature.group 3.9.2.v20140221-1700 requires 'org.eclipse.jdt.apt.core [3.3.500.v20120516-0617]' but it could not be found
> [ERROR]   Cannot satisfy dependency: org.eclipse.mylyn.java_feature.feature.group 3.9.2.v20140211-0100 depends on: org.eclipse.jdt.feature.group 3.4.0
> [ERROR]   Cannot satisfy dependency: org.eclipse.recommenders.mylyn.rcp.feature.feature.group 2.2.0.qualifier depends on: org.eclipse.mylyn.java_feature.feature.group 0.0.0

Apparently, the org.eclipse.mylyn.java_feature picked up the old version
of the org.eclipse.jdt feature, which refers to the bundle
org.eclipse.jdt.apt.core in a version (3.3.500.v20120516-0617) that is
not there anymore with the feature patch applied (the new version is
3.3.550.v20140316-1836).

Is this scenario (adding a feature patch to the target platform)
unsupported by Tycho? Or am I doing things wrong (e.g., planner vs. slicer)?

Best wishes,

Andreas

[1] <http://wiki.eclipse.org/JDT/Eclipse_Java_8_Support_For_Kepler>

-- 
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top