[MRM-1651] Improve OSGi statements by defining version ranges

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1368818 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/spring-registry-api/pom.xml b/spring-registry-api/pom.xml
index d4974f3..c979837 100644
--- a/spring-registry-api/pom.xml
+++ b/spring-registry-api/pom.xml
@@ -43,6 +43,16 @@
       <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            <Export-Package>
+              org.apache.archiva.redback.components.registry;version=${project.version};-split-package:=merge-first
+            </Export-Package>
+            <Import-Package>
+
+            </Import-Package>
+          </instructions>
+        </configuration>
       </plugin>
     </plugins>
   </build>
diff --git a/spring-registry-commons/pom.xml b/spring-registry-commons/pom.xml
index be99d36..e1c4242 100644
--- a/spring-registry-commons/pom.xml
+++ b/spring-registry-commons/pom.xml
@@ -97,6 +97,22 @@
       <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            <Export-Package>
+              org.apache.archiva.redback.components.registry.commons;version=${project.version};-split-package:=merge-first
+            </Export-Package>
+            <Import-Package>
+              javax.annotation,
+              org.apache.archiva.redback.components.registry;version=${project.version},
+              org.apache.commons.configuration*;version="[1.8,2)",,
+              org.apache.commons.lang;version="[2.6,3)",
+              org.codehaus.plexus.interpolation;version="[1.14,2)",
+              org.springframework*;version="[3,4)",
+              org.slf4j
+            </Import-Package>
+          </instructions>
+        </configuration>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>