Reuse odlparent common features 10/79010/3
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 23 Dec 2018 07:57:13 +0000 (08:57 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 24 Dec 2018 23:47:21 +0000 (00:47 +0100)
Rather than packaging commons-lang3 ourselves, use odlparent-provided
feature. Same goes for servlet-api and commons-text.

Change-Id: Icdd20a83cb98242e22f77dd7d8108699f1f30887
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features/mdsal/odl-mdsal-clustering-commons/pom.xml
features/mdsal/odl-mdsal-clustering-commons/src/main/feature/feature.xml
features/mdsal/odl-mdsal-distributed-datastore/pom.xml
features/mdsal/odl-mdsal-distributed-datastore/src/main/feature/feature.xml [new file with mode: 0644]
opendaylight/md-sal/sal-clustering-commons/pom.xml

index 211d232..a046a39 100644 (file)
             <type>xml</type>
             <classifier>features</classifier>
         </dependency>
+        <dependency>
+            <groupId>org.opendaylight.odlparent</groupId>
+            <artifactId>odl-apache-commons-lang3</artifactId>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
+        <dependency>
+            <groupId>org.opendaylight.odlparent</groupId>
+            <artifactId>odl-servlet-api</artifactId>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>sal-clustering-commons</artifactId>
index bb5c552..faa27f8 100644 (file)
@@ -11,5 +11,7 @@
         <feature version="[4,5)">odl-akka-system-2.5</feature>
         <feature version="[4,5)">odl-akka-persistence-2.5</feature>
         <feature version="[4,5)">odl-akka-clustering-2.5</feature>
+        <feature version="[4,5)">odl-apache-commons-lang3</feature>
+        <feature version="[4,5)">odl-servlet-api</feature>
     </feature>
 </features>
index 3912616..5f3e101 100644 (file)
             <type>xml</type>
             <classifier>features</classifier>
         </dependency>
+        <dependency>
+            <groupId>org.opendaylight.odlparent</groupId>
+            <artifactId>odl-apache-commons-text</artifactId>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>odl-mdsal-clustering-commons</artifactId>
diff --git a/features/mdsal/odl-mdsal-distributed-datastore/src/main/feature/feature.xml b/features/mdsal/odl-mdsal-distributed-datastore/src/main/feature/feature.xml
new file mode 100644 (file)
index 0000000..7716205
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright © 2017 Red Hat, Inc. and others.
+  ~
+  ~ 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 xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="odl-controller-${project.version}">
+    <feature name="odl-mdsal-distributed-datastore" version="${project.version}">
+        <feature version="[4,5)">odl-apache-commons-text</feature>
+    </feature>
+</features>
index 2b79a38..c503434 100644 (file)
@@ -73,6 +73,7 @@
     </dependency>
     <dependency>
       <!-- Enforce Netty’s optional dependency on servlet API -->
+      <!-- FIXME: is this really needed ? -->
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>
     </dependency>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.