Package config-util into odl-config-util 07/68207/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 13 Feb 2018 19:00:14 +0000 (20:00 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 13 Feb 2018 19:04:06 +0000 (20:04 +0100)
Netconf is using the XML packages in config-util extensively,
so we should package it separately from odl-config-core to express
the dependency correctly.

JIRA: NETCONF-508
Change-Id: Id3f0b88f1ebcb9bd41292ecb948e15e6ffcde49d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features/config/features-config/pom.xml
features/config/odl-config-core/pom.xml
features/config/odl-config-util/pom.xml [new file with mode: 0644]
features/config/odl-config-util/src/main/feature/feature.xml [new file with mode: 0644]
features/config/pom.xml
opendaylight/config/config-artifacts/pom.xml

index bc76141d77ba52e221c88f5b8edb8957447d7516..13a75cd801c05f3b432c1926edebde018294f7f6 100644 (file)
             <type>xml</type>
             <classifier>features</classifier>
         </dependency>
             <type>xml</type>
             <classifier>features</classifier>
         </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>odl-config-util</artifactId>
+            <version>${project.version}</version>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
     </dependencies>
 
 </project>
     </dependencies>
 
 </project>
index e464115a2c47304f888c9dfe6043fbd2e4b4a9c7..818c4b8e571d58b6958c6a967a12da61b515b41a 100644 (file)
         </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
         </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
-            <artifactId>odl-config-api</artifactId>
+            <artifactId>odl-config-util</artifactId>
             <type>xml</type>
             <classifier>features</classifier>
         </dependency>
             <type>xml</type>
             <classifier>features</classifier>
         </dependency>
-        <dependency>
-            <groupId>${project.groupId}</groupId>
-            <artifactId>config-util</artifactId>
-        </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>yang-jmx-generator</artifactId>
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>yang-jmx-generator</artifactId>
diff --git a/features/config/odl-config-util/pom.xml b/features/config/odl-config-util/pom.xml
new file mode 100644 (file)
index 0000000..bb033a3
--- /dev/null
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2018 Pantheon Technologies, s.r.o. 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
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.opendaylight.odlparent</groupId>
+        <artifactId>single-feature-parent</artifactId>
+        <version>3.0.2</version>
+        <relativePath/>
+    </parent>
+
+    <groupId>org.opendaylight.controller</groupId>
+    <artifactId>odl-config-util</artifactId>
+    <version>0.8.0-SNAPSHOT</version>
+    <packaging>feature</packaging>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.opendaylight.yangtools</groupId>
+                <artifactId>yangtools-artifacts</artifactId>
+                <version>2.0.1</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.opendaylight.controller</groupId>
+                <artifactId>config-artifacts</artifactId>
+                <version>${project.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.opendaylight.yangtools</groupId>
+            <artifactId>odl-yangtools-data-api</artifactId>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>odl-config-api</artifactId>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>config-util</artifactId>
+        </dependency>
+    </dependencies>
+
+</project>
diff --git a/features/config/odl-config-util/src/main/feature/feature.xml b/features/config/odl-config-util/src/main/feature/feature.xml
new file mode 100644 (file)
index 0000000..ec7ad36
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright © 2018 Pantheon Technologies, s.r.o. 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 name="odl-controller-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
+    <feature name="odl-config-util" version="${project.version}">
+        <feature version="[2.0.1,3)">odl-yangtools-data-api</feature>
+    </feature>
+</features>
index d3be32010ffaccf469658ff48ef2db0472acaba3..876896fa46f636855f5d3821702cda63c99d59a1 100644 (file)
@@ -28,6 +28,7 @@
         <module>odl-config-core</module>
         <module>odl-config-manager</module>
         <module>odl-config-netty-config-api</module>
         <module>odl-config-core</module>
         <module>odl-config-manager</module>
         <module>odl-config-netty-config-api</module>
+        <module>odl-config-util</module>
     </modules>
 
     <scm>
     </modules>
 
     <scm>
index 2731e47ae47a6d2b2ff7163c4b0d14a9abcc79a3..164e8f1a09fb530b6085d796ce75aeda2c9c3cff 100644 (file)
                 <classifier>features</classifier>
                 <type>xml</type>
             </dependency>
                 <classifier>features</classifier>
                 <type>xml</type>
             </dependency>
+            <dependency>
+                <groupId>${project.groupId}</groupId>
+                <artifactId>odl-config-util</artifactId>
+                <version>${project.version}</version>
+                <classifier>features</classifier>
+                <type>xml</type>
+            </dependency>
         </dependencies>
     </dependencyManagement>
 </project>
         </dependencies>
     </dependencyManagement>
 </project>