Fix natservice-impl for Karaf 4 36/54436/1
authorStephen Kitt <skitt@redhat.com>
Thu, 6 Apr 2017 13:51:22 +0000 (15:51 +0200)
committerStephen Kitt <skitt@redhat.com>
Thu, 6 Apr 2017 13:51:22 +0000 (15:51 +0200)
Change-Id: I92ae9307e5001d8b5527d98b95b0c005b87c38da
Signed-off-by: Stephen Kitt <skitt@redhat.com>
vpnservice/natservice/natservice-impl/pom.xml

index 5c72d8d846725e9eed6cfc709fac31a359072793..c79cc94e1ea16f30562933ec0f61e3b3e36186ce 100644 (file)
@@ -118,6 +118,26 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            <!-- This bundle works with Karaf 3 and 4.0 -->
+            <Import-Package>
+              org.apache.karaf.shell.commands;version="[3.0.0,4.1)",
+              org.apache.karaf.shell.console;version="[3.0.0,4.1)",
+              *
+            </Import-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
     <!--
         Maven Site Configuration