Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sapphire-dev] New topic in forum Sapphire, called Bug in feature dependencies in 8.2, by Ralf S.

Title: Eclipse Community Forums
Subject: Bug in feature dependencies in 8.2 Author: Ralf S. Date: Mon, 29 June 2015 20:56
I just installed a feature that depends on Sapphire 8.x.x.x on Eclipse Mars.
After adding the update site for 8.2 installation went smooth and the feature worked.

But in the error log I found the following error message:
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.sapphire.modeling [921]
  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"


>From my understanding the following happend:

The custom feature has the following in its feature.xml:
   <requires>
      <import feature="org.eclipse.sapphire.osgi" version="8.0.0" match="compatible"/>
   </requires>

because of this entry the feature org.eclipse.sapphire.osgi_8.2.0.201506110935 was installed. This feature has the following entry in its feature.xml:
   <requires>
      <import feature="org.eclipse.sapphire" version="8.2.0"/>
   </requires>

Because of this entry the feature org.eclipse.sapphire_9.0.0.201506110922 was installed. This version requires Java 8, hence the error message.

I think the correct entry in the feature.xml of org.eclipse.sapphire.osgi_8.2.0 should be:
   <requires>
      <import feature="org.eclipse.sapphire" version="8.2.0" match="equivalent"/>
   </requires>

The value "equivalent" would also accept the version 8.2.1, 8.2.2 etc. The value "perfect" might be even better, as it only matches 8.2.0.

IMO the missing match attribute is wrong (as match="greaterOrEqual" would be).

Ralf
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]

Back to the top