From 345894779e66c0c9e668503738f19b063cf5a2ce Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Mon, 10 Apr 2017 17:00:17 +0200 Subject: [PATCH] Handle odl-mdsal-common with Karaf 4.0.9 Karaf 4.0.9 simplifies feature dependencies (so that dependencies specified in feature.xml can be completed from the POM), but that causes issues with odl-mdsal-common since features in Karaf are identified by their name only: * if both the controller odl-mdsal-common and the mdsal odl-mdsal-common are encountered in the dependency tree, whichever one came first (as dependencies are resolved) is the one that ends up being kept; * in some circumstances, the mdsal repository replaces controller's even when the controller dependency is retained (this is a Karaf bug which I'll submit a patch for, but we can work around it). Change-Id: I5400a829560ae96cb2f264e103020cccd1d225c3 Signed-off-by: Stephen Kitt --- features/mdsal/odl-mdsal-broker-local/pom.xml | 13 +++++++------ .../src/main/feature/feature.xml | 2 ++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/features/mdsal/odl-mdsal-broker-local/pom.xml b/features/mdsal/odl-mdsal-broker-local/pom.xml index 3ba139a950..b947c7e0d8 100644 --- a/features/mdsal/odl-mdsal-broker-local/pom.xml +++ b/features/mdsal/odl-mdsal-broker-local/pom.xml @@ -79,6 +79,13 @@ + + + org.opendaylight.controller + odl-mdsal-common + xml + features + org.opendaylight.yangtools odl-yangtools-common @@ -97,12 +104,6 @@ xml features - - org.opendaylight.controller - odl-mdsal-common - xml - features - org.opendaylight.controller odl-config-startup diff --git a/features/mdsal/odl-mdsal-broker-local/src/main/feature/feature.xml b/features/mdsal/odl-mdsal-broker-local/src/main/feature/feature.xml index ff4c8d4977..c808b4859b 100644 --- a/features/mdsal/odl-mdsal-broker-local/src/main/feature/feature.xml +++ b/features/mdsal/odl-mdsal-broker-local/src/main/feature/feature.xml @@ -7,6 +7,8 @@ and is available at http://www.eclipse.org/legal/epl-v10.html --> + + mvn:org.opendaylight.controller/odl-mdsal-common/${project.version}/xml/features mvn:org.opendaylight.controller/sal-schema-service/${project.version} mvn:org.opendaylight.controller/blueprint/${blueprint.version} -- 2.36.6