You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fm...@apache.org on 2009/10/29 12:05:32 UTC

svn commit: r830894 - /felix/trunk/scr/pom.xml

Author: fmeschbe
Date: Thu Oct 29 11:05:31 2009
New Revision: 830894

URL: http://svn.apache.org/viewvc?rev=830894&view=rev
Log:
FELIX-1711 Ensure correct versions are imported. Especially
important is the imported version of the SCR API, since we
implement version 1.1 we should not be importing anything
older or newer.

Modified:
    felix/trunk/scr/pom.xml

Modified: felix/trunk/scr/pom.xml
URL: http://svn.apache.org/viewvc/felix/trunk/scr/pom.xml?rev=830894&r1=830893&r2=830894&view=diff
==============================================================================
--- felix/trunk/scr/pom.xml (original)
+++ felix/trunk/scr/pom.xml Thu Oct 29 11:05:31 2009
@@ -174,13 +174,22 @@
                                 Framework version 1.3 (from R4.0) is enough,
                                 the Bundle.getBundleContext method is guarded
                             -->
-                            org.osgi.framework;version=1.3,
+                            org.osgi.framework;version="[1.3,2)",
                             
                             <!--
                                 Configuration Admin is optional and if it is
                                 present, version 1.2 (from R4.0) is enough  
                             -->
-                            org.osgi.service.cm;version=1.2;resolution:=optional
+                            org.osgi.service.cm;version="[1.2,2)";resolution:=optional,
+                            
+                            <!--
+                                SCR API is required (we also export it) and must
+                                be of any 1.1 version, because we implement that
+                                exact version. This import is only used if the
+                                framework decides to wire the bundle to another
+                                API provider. 
+                            -->
+                            org.osgi.service.component;version="[1.1,1.2)"
                         </Import-Package>
                         <DynamicImport-Package>
                             org.osgi.service.log