Skip to main content

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

I ran into the same issue a while back and it would be great if this was
fixed in Tycho.

In the meantime, I worked around it by moving the patch feature from the
target platform into the pom, adding it as a
<dependency-resolution><extraRequirements> element to the target
platform configuration.

This has the downside that you either need to maintain a separate target
platform file with the extra patch feature for the IDE or need the patch
in source there. I already had the latter anyway, so this wasn't an
issue for me.

On 05.05.2015 14:08, Andreas Sewe wrote:
> 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>
> 

-- 
Yatta Solutions GmbH
- Carsten Reckord -

  t  +49 (0)69 2475666-33
  f  +49 (0)69 2475668-0
  e  reckord@xxxxxxxx

Anschrift Office Kassel
  Universitätsplatz 12
  34127 Kassel

Anschrift Office Frankfurt a.M.
  Mainzer Landstraße 50
  60325 Frankfurt a.M.

Sitz, Handelsregister:
  Sitz der Gesellschaft: Kassel
  Amtsgericht Kassel, HRB 14720
  USt-IdNr DE263191529

Geschäftsführung:
  Johannes Jacop
  Dr. Christian Schneider

Kontakt Geschäftsstelle:
  t  +49 (0)69 2475666-0
  f  +49 (0)69 2475668-0
  e  info@xxxxxxxx



Back to the top