Bug 7891: Add ssh feature to netconf-netty-util 60/56460/3
authorAndrej Mak <andrej.mak@pantheon.tech>
Wed, 3 May 2017 07:06:48 +0000 (09:06 +0200)
committerAndrej Mak <andrej.mak@pantheon.tech>
Thu, 4 May 2017 08:31:10 +0000 (08:31 +0000)
Odl-netconf-netty-util needs sshd-core bunde to work.
It is provided by karaf. However, if odl-netconf-netty-util
is placed to featuresBoot, ssh provided by karaf isn't
started, so ResolutionException is thrown. To prevent this
add ssh feature to odl-netconf-netty-util.

Change-Id: Iaf5ecddaa726ea892191b5cf47095c1df3b096f6
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
features/netconf/odl-netconf-netty-util/pom.xml
features/netconf/odl-netconf-netty-util/src/main/feature/feature.xml [new file with mode: 0644]

index 26e63eedcdfcdfe6ef663d1960c5379ae48c6857..2236c680f2cc3a0822ae0def651906413c9c3933 100644 (file)
     <name>OpenDaylight :: Netconf :: Netty Util</name>
 
     <dependencies>
+        <dependency>
+            <groupId>org.apache.karaf.features</groupId>
+            <artifactId>standard</artifactId>
+            <version>${karaf4.version}</version>
+            <classifier>features</classifier>
+            <type>xml</type>
+            <scope>runtime</scope>
+        </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>odl-netconf-api</artifactId>
diff --git a/features/netconf/odl-netconf-netty-util/src/main/feature/feature.xml b/features/netconf/odl-netconf-netty-util/src/main/feature/feature.xml
new file mode 100644 (file)
index 0000000..4607798
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright (c) 2017 Cisco Systems, Inc. and others.  All rights reserved.
+  ~
+  ~ This program and the accompanying materials are made available under the
+  ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+  ~ and is available at http://www.eclipse.org/legal/epl-v10.html
+  -->
+<features name="odl-netconf-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
+    <feature name="odl-netconf-netty-util" version="${project.version}">
+        <feature version="${karaf4.version}">ssh</feature>
+    </feature>
+</features>