Add feature-repo-parent pom 02/67402/2
authorClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Sun, 21 Jan 2018 17:21:11 +0000 (18:21 +0100)
committerClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Sun, 21 Jan 2018 18:22:42 +0000 (19:22 +0100)
reducing duplicated dependencies
by inheritance.

Change-Id: I8683f302ec4bd7aa08ed38bbc8a149e17de24a5d
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
feature-repo-parent/pom.xml [new file with mode: 0644]
features/bgp/features-bgp/pom.xml
features/bgpcep-extras/features-bgpcep-extras/pom.xml
features/bmp/features-bmp/pom.xml
features/concepts/features-concepts/pom.xml
features/config-loader/features-config-loader/pom.xml
features/pcep/features-pcep/pom.xml
features/rsvp/features-rsvp/pom.xml
features/topology/features-topology/pom.xml
pom.xml
single-feature-parent/pom.xml

diff --git a/feature-repo-parent/pom.xml b/feature-repo-parent/pom.xml
new file mode 100644 (file)
index 0000000..5a1ff98
--- /dev/null
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright (c) 2018 AT&T Intellectual Property.
+  ~ 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
+  -->
+<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>feature-repo-parent</artifactId>
+        <version>3.0.2</version>
+        <relativePath/>
+    </parent>
+
+    <groupId>org.opendaylight.bgpcep</groupId>
+    <artifactId>feature-repo-parent</artifactId>
+    <version>0.9.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+    <name>${project.artifactId}</name>
+
+    <dependencyManagement>
+        <!-- ODL-BGP-ARTIFACTS -->
+        <dependencies>
+            <dependency>
+                <groupId>org.opendaylight.bgpcep</groupId>
+                <artifactId>bgpcep-artifacts</artifactId>
+                <version>${project.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <scm>
+        <connection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</connection>
+        <developerConnection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</developerConnection>
+        <url>https://wiki.opendaylight.org/view/BGP_LS_PCEP:Main</url>
+        <tag>HEAD</tag>
+    </scm>
+</project>
\ No newline at end of file
index cbe213859d4689c22e18d8cd87789584d53e680f..f5acb8c44359fb258ef3b22c00269e48a091b7ee 100644 (file)
@@ -4,30 +4,15 @@
          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>
+        <groupId>org.opendaylight.bgpcep</groupId>
         <artifactId>feature-repo-parent</artifactId>
-        <version>3.0.2</version>
-        <relativePath/>
+        <version>0.9.0-SNAPSHOT</version>
+        <relativePath>../../../feature-repo-parent</relativePath>
     </parent>
 
-    <groupId>org.opendaylight.bgpcep</groupId>
     <artifactId>features-bgp</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
     <packaging>feature</packaging>
 
-    <dependencyManagement>
-        <!-- ODL-BGP-ARTIFACTS -->
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.bgpcep</groupId>
-                <artifactId>bgpcep-artifacts</artifactId>
-                <version>${project.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
     <dependencies>
         <dependency>
             <groupId>${project.groupId}</groupId>
index e756b5fdef01b8b85bc702c43d22e7263b79ddf8..292c42710e86e1652525502740095bac009d4513 100644 (file)
@@ -4,30 +4,15 @@
          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>
+        <groupId>org.opendaylight.bgpcep</groupId>
         <artifactId>feature-repo-parent</artifactId>
-        <version>3.0.2</version>
-        <relativePath/>
+        <version>0.9.0-SNAPSHOT</version>
+        <relativePath>../../../feature-repo-parent</relativePath>
     </parent>
 
-    <groupId>org.opendaylight.bgpcep</groupId>
     <artifactId>features-bgpcep-extras</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
     <packaging>feature</packaging>
 
-    <dependencyManagement>
-        <!-- ODL-BGP-ARTIFACTS -->
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.bgpcep</groupId>
-                <artifactId>bgpcep-artifacts</artifactId>
-                <version>${project.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
     <dependencies>
         <dependency>
             <groupId>${project.groupId}</groupId>
index 42f0fae3bc0d04588c9f43835282d145fd65f0c0..6b195866c508ea053ecec4445973467b31aa7bfe 100644 (file)
@@ -4,29 +4,15 @@
          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>
+        <groupId>org.opendaylight.bgpcep</groupId>
         <artifactId>feature-repo-parent</artifactId>
-        <version>3.0.2</version>
-        <relativePath/>
+        <version>0.9.0-SNAPSHOT</version>
+        <relativePath>../../../feature-repo-parent</relativePath>
     </parent>
 
-    <groupId>org.opendaylight.bgpcep</groupId>
     <artifactId>features-bmp</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
     <packaging>feature</packaging>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.bgpcep</groupId>
-                <artifactId>bgpcep-artifacts</artifactId>
-                <version>${project.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
     <dependencies>
         <dependency>
             <groupId>${project.groupId}</groupId>
index 5ef23fa6143d8eb20e05f45116abe0d6e2169400..c0a6ddf1a019636074d58e004b53611471b1f360 100644 (file)
          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>
+        <groupId>org.opendaylight.bgpcep</groupId>
         <artifactId>feature-repo-parent</artifactId>
-        <version>3.0.2</version>
-        <relativePath/>
+        <version>0.9.0-SNAPSHOT</version>
+        <relativePath>../../../feature-repo-parent</relativePath>
     </parent>
 
-    <groupId>org.opendaylight.bgpcep</groupId>
     <artifactId>features-concepts</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
     <packaging>feature</packaging>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.bgpcep</groupId>
-                <artifactId>bgpcep-artifacts</artifactId>
-                <version>${project.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
     <dependencies>
         <dependency>
             <groupId>${project.groupId}</groupId>
index eae12bf1e9c109764b0bb3694b0b2a6f2aea38a5..b55980fba94220a64d71f3d9c3d54ce2ce0ed923 100644 (file)
          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>
+        <groupId>org.opendaylight.bgpcep</groupId>
         <artifactId>feature-repo-parent</artifactId>
-        <version>3.0.2</version>
-        <relativePath/>
+        <version>0.9.0-SNAPSHOT</version>
+        <relativePath>../../../feature-repo-parent</relativePath>
     </parent>
 
-    <groupId>org.opendaylight.bgpcep</groupId>
     <artifactId>features-config-loader</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
     <packaging>feature</packaging>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.bgpcep</groupId>
-                <artifactId>bgpcep-artifacts</artifactId>
-                <version>${project.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
     <dependencies>
         <dependency>
             <groupId>${project.groupId}</groupId>
index 11f336d2f68f0d70d1f825add08d6c427b8f50ba..1e30b1244b142493bfe4559def0439a1c5eebd38 100644 (file)
@@ -4,29 +4,15 @@
          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>
+        <groupId>org.opendaylight.bgpcep</groupId>
         <artifactId>feature-repo-parent</artifactId>
-        <version>3.0.2</version>
-        <relativePath/>
+        <version>0.9.0-SNAPSHOT</version>
+        <relativePath>../../../feature-repo-parent</relativePath>
     </parent>
 
-    <groupId>org.opendaylight.bgpcep</groupId>
     <artifactId>features-pcep</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
     <packaging>feature</packaging>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.bgpcep</groupId>
-                <artifactId>bgpcep-artifacts</artifactId>
-                <version>${project.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
     <dependencies>
         <dependency>
             <groupId>${project.groupId}</groupId>
index df28ecc4679144a8c2c63f2f4fab46da70011dff..1194aa1db23e93c988d1c8b8b6208444ad0fa9fe 100644 (file)
@@ -4,30 +4,15 @@
          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>
+        <groupId>org.opendaylight.bgpcep</groupId>
         <artifactId>feature-repo-parent</artifactId>
-        <version>3.0.2</version>
-        <relativePath/>
+        <version>0.9.0-SNAPSHOT</version>
+        <relativePath>../../../feature-repo-parent</relativePath>
     </parent>
 
-    <groupId>org.opendaylight.bgpcep</groupId>
     <artifactId>features-rsvp</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
     <packaging>feature</packaging>
 
-    <dependencyManagement>
-        <!-- ODL-BGP-ARTIFACTS -->
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.bgpcep</groupId>
-                <artifactId>bgpcep-artifacts</artifactId>
-                <version>${project.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
     <dependencies>
         <dependency>
             <groupId>${project.groupId}</groupId>
index cba6656a97533724d23adf7aa5bcd7fb5923abd8..fb457eb677cc4d3c9c6cb3bf244bf9564adb8acc 100644 (file)
          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>
+        <groupId>org.opendaylight.bgpcep</groupId>
         <artifactId>feature-repo-parent</artifactId>
-        <version>3.0.2</version>
-        <relativePath/>
+        <version>0.9.0-SNAPSHOT</version>
+        <relativePath>../../../feature-repo-parent</relativePath>
     </parent>
 
-    <groupId>org.opendaylight.bgpcep</groupId>
     <artifactId>features-topology</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
     <packaging>feature</packaging>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.bgpcep</groupId>
-                <artifactId>bgpcep-artifacts</artifactId>
-                <version>${project.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
     <dependencies>
         <dependency>
             <groupId>${project.groupId}</groupId>
diff --git a/pom.xml b/pom.xml
index b425763c3c826ed4ea95f37f0fd8fdd6c11126a4..f77de59eec54d238735f1738689ef5285a0aeb19 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -43,6 +43,7 @@
         <module>config-parent</module>
         <module>testtool-parent</module>
         <module>single-feature-parent</module>
+        <module>feature-repo-parent</module>
 
         <!-- Common infra -->
         <module>concepts</module>
index 49342b23c3fedc680fd20952cce80979acf25408..3bdaae3479b9dac0bb34f83956c330621aaf9384 100644 (file)
@@ -1,4 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright (c) 2018 AT&T Intellectual Property.
+  ~ 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
+  -->
 <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">