Fix for bgp feature to use get proper configs 66/10566/3
authorEd Warnicke <eaw@cisco.com>
Mon, 1 Sep 2014 02:00:47 +0000 (21:00 -0500)
committerRobert Varga <rovarga@cisco.com>
Mon, 1 Sep 2014 09:54:48 +0000 (11:54 +0200)
Also remove unneeded wrap:, and fixed versions.

Change-Id: I62682fd7899ee153cc4202ea009db0cdd2833a27
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/controller-config/pom.xml
bgp/feature/pom.xml
bgp/feature/src/main/resources/features.xml
pcep/controller-config/pom.xml
programming/controller-config/pom.xml

index eb1c3b79780b78e8a175121906ebfdfbce864fbd..6ad6fbf062b40504611430510ca9219f95b17b0f 100644 (file)
         <maven>3.0.4</maven>
     </prerequisites>
 
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-artifacts</id>
+                        <goals>
+                            <goal>attach-artifact</goal>
+                        </goals>
+                        <phase>package</phase>
+                        <configuration>
+                            <artifacts>
+                                <artifact>
+                                    <file>${project.build.directory}/classes/initial/31-bgp.xml</file>
+                                    <type>xml</type>
+                                    <classifier>config</classifier>
+                                </artifact>
+                                <artifact>
+                                    <file>${project.build.directory}/classes/initial/41-bgp-example.xml</file>
+                                    <type>xml</type>
+                                    <classifier>config-example</classifier>
+                                </artifact>
+                            </artifacts>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
 </project>
index 1adff85b22e667f78dfde67d3f9cade138f1f36b..9d00d38716b59f07d1fd5ea7b6365333fe1a57e0 100644 (file)
           <artifactId>bgp-util</artifactId>
           <version>${project.version}</version>
       </dependency>
+      <dependency>
+          <groupId>${project.groupId}</groupId>
+          <artifactId>programming-controller-config</artifactId>
+          <version>${project.version}</version>
+          <type>xml</type>
+          <classifier>config</classifier>
+      </dependency>
       <dependency>
           <groupId>${project.groupId}</groupId>
           <artifactId>bgp-controller-config</artifactId>
           <version>${project.version}</version>
+          <type>xml</type>
+          <classifier>config</classifier>
+      </dependency>
+      <dependency>
+          <groupId>${project.groupId}</groupId>
+          <artifactId>pcep-controller-config</artifactId>
+          <version>${project.version}</version>
+          <type>xml</type>
+          <classifier>config</classifier>
+      </dependency>
+      <dependency>
+          <groupId>${project.groupId}</groupId>
+          <artifactId>pcep-controller-config</artifactId>
+          <version>${project.version}</version>
+          <type>xml</type>
+          <classifier>config-segment</classifier>
+      </dependency>
+      <dependency>
+          <groupId>${project.groupId}</groupId>
+          <artifactId>pcep-controller-config</artifactId>
+          <version>${project.version}</version>
+          <type>xml</type>
+          <classifier>config-provider</classifier>
+      </dependency>
+      <dependency>
+          <groupId>${project.groupId}</groupId>
+          <artifactId>bgp-controller-config</artifactId>
+          <version>${project.version}</version>
+          <type>xml</type>
+          <classifier>config-example</classifier>
       </dependency>
       <dependency>
           <groupId>${project.groupId}</groupId>
           <artifactId>topology-tunnel-api</artifactId>
           <version>${project.version}</version>
       </dependency>
+      <dependency>
+          <groupId>commons-codec</groupId>
+          <artifactId>commons-codec</artifactId>
+      </dependency>
 
    <dependency>
       <groupId>com.google.guava</groupId>
index 51fe7bbff73b58fef22a15a7888452ad2962e0d7..05dc4fa1119e8486f75a1984e88d85d195b7f74b 100644 (file)
         <feature version='${project.version}'>odl-pcep-spi</feature>
         <feature version='${project.version}'>odl-bgpcep-topology</feature>
         <feature version='${project.version}'>odl-bgpcep-linkstate</feature>
-        <feature version='${project.version}'>odl-bgpcep-testtool</feature>
         <feature version='${project.version}'>odl-bgpcep-tunnel</feature>
         <feature version='${project.version}'>odl-bgpcep-programming</feature>
-        <!--<feature version='${project.version}'>odl-bgpcep-controller-config</feature>-->
+        <configfile finalname="etc/opendaylight/karaf/30-programming.xml">mvn:org.opendaylight.bgpcep/programming-controller-config/${project.version}/xml/config</configfile>
+        <configfile finalname="etc/opendaylight/karaf/31-bgp.xml">mvn:org.opendaylight.bgpcep/bgp-controller-config/${project.version}/xml/config</configfile>
+        <configfile finalname="etc/opendaylight/karaf/32-pcep.xml">mvn:org.opendaylight.bgpcep/pcep-controller-config/${project.version}/xml/config</configfile>
+        <configfile finalname="etc/opendaylight/karaf/33-pcep-segment-routing.xml">mvn:org.opendaylight.bgpcep/pcep-controller-config/${project.version}/xml/config-segment</configfile>
+        <configfile finalname="etc/opendaylight/karaf/39-pcep-provider.xml">mvn:org.opendaylight.bgpcep/pcep-controller-config/${project.version}/xml/config-provider</configfile>
+        <configfile finalname="etc/opendaylight/karaf/41-bgp-example.xml">mvn:org.opendaylight.bgpcep/bgp-controller-config/${project.version}/xml/config-example</configfile>
     </feature>
 
     <!--<feature name='odl-bgpcep-pcep-all' version='${project.version}'>-->
 
 
     <feature name='odl-bgpcep-dependencies' version='${project.version}'>
-        <bundle>wrap:mvn:com.google.guava/guava/14.0</bundle>
-        <bundle>mvn:org.opendaylight.yangtools.model/ietf-inet-types/2010.09.24.4-SNAPSHOT</bundle>
+        <bundle>mvn:com.google.guava/guava/${guava.version}</bundle>
+        <bundle>mvn:org.opendaylight.yangtools.model/ietf-inet-types/${ietf.types.version}</bundle>
         <bundle>mvn:org.opendaylight.yangtools/concepts/${yangtools.version}</bundle>
-        <bundle>mvn:commons-codec/commons-codec/1.8</bundle>
+        <bundle>mvn:commons-codec/commons-codec/${commons.codec.version}</bundle>
         <feature version='${yangtools.version}'>odl-yangtools-binding</feature>
         <feature version='${yangtools.version}'>odl-yangtools-common</feature>
         <bundle>mvn:org.opendaylight.controller/config-api/${netconf.version}</bundle>
-        <bundle>wrap:mvn:io.netty/netty-buffer/4.0.10.Final</bundle>
-        <bundle>wrap:mvn:io.netty/netty-codec/4.0.10.Final</bundle>
-        <bundle>wrap:mvn:io.netty/netty-transport/4.0.10.Final</bundle>
-        <bundle>wrap:mvn:io.netty/netty-common/4.0.10.Final</bundle>
-        <bundle>wrap:mvn:io.netty/netty-handler/4.0.10.Final</bundle>
-        <bundle>wrap:mvn:io.netty/netty-codec-http/4.0.10.Final</bundle>
+        <bundle>mvn:io.netty/netty-buffer/${netty.version}</bundle>
+        <bundle>mvn:io.netty/netty-codec/${netty.version}</bundle>
+        <bundle>mvn:io.netty/netty-transport/${netty.version}</bundle>
+        <bundle>mvn:io.netty/netty-common/${netty.version}</bundle>
+        <bundle>mvn:io.netty/netty-handler/${netty.version}</bundle>
+        <bundle>mvn:io.netty/netty-codec-http/${netty.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/concepts/${project.version}</bundle>
-        <bundle>wrap:mvn:io.netty/netty-all/4.0.10.Final</bundle>
         <bundle>mvn:org.opendaylight.controller/netty-config-api/${netconf.version}</bundle>
-        <bundle>mvn:org.opendaylight.controller/protocol-framework/0.5.0-SNAPSHOT</bundle>
-        <bundle>mvn:org.opendaylight.tcpmd5/tcpmd5-api/1.0.0-SNAPSHOT</bundle>
+        <bundle>mvn:org.opendaylight.controller/protocol-framework/${controller.framework.version}</bundle>
+        <bundle>mvn:org.opendaylight.tcpmd5/tcpmd5-api/${tcpmd5.version}</bundle>
         <bundle>mvn:org.opendaylight.tcpmd5/tcpmd5-netty/${tcpmd5.version}</bundle>
     </feature>
 
-
-    <feature name='odl-bgpcep-controller-config' version='${project.version}'>
-        <bundle>wrap:mvn:org.opendaylight.bgpcep/bgp-controller-config/${project.version}</bundle>
-    </feature>
-
     <feature name='odl-bgpcep-util' version='${project.version}'>
         <feature version='${project.version}'>odl-bgpcep-dependencies</feature>
-        <bundle>wrap:mvn:com.google.guava/guava/14.0</bundle>
+        <bundle>mvn:com.google.guava/guava/${guava.version}</bundle>
         <bundle>mvn:commons-codec/commons-codec/1.9</bundle>
         <feature version='${yangtools.version}'>odl-yangtools-common</feature>
         <bundle>mvn:org.opendaylight.yangtools/yang-binding/${yangtools.version}</bundle>
     <feature name='odl-bgpcep-rib' version='${project.version}'>
         <feature version='${project.version}'>odl-bgpcep-parser</feature>
         <feature version='${yangtools.version}'>odl-yangtools-binding</feature>
-        <feature version='${netconf.version}'>odl-netconf-all</feature>
         <bundle>mvn:org.opendaylight.controller/sal-binding-config/${mdsal.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/bgp-rib-api/${project.version}</bundle>
        <bundle>mvn:org.opendaylight.bgpcep/bgp-rib-impl/${project.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/bgp-rib-spi/${project.version}</bundle>
     </feature>
 
-
-    <feature name='odl-bgpcep-testtool' version='${project.version}'>
-        <bundle>wrap:mvn:org.opendaylight.bgpcep/bgp-testtool/${project.version}</bundle>
-    </feature>
-
-
     <feature name='odl-bgpcep-tunnel' version='${project.version}'>
         <feature version='${project.version}'>odl-bgpcep-dependencies</feature>
         <feature version='${project.version}'>odl-bgpcep-programming</feature>
         <feature version='${project.version}'>odl-bgpcep-topology</feature>
         <bundle>mvn:org.opendaylight.bgpcep/programming-api/${project.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/programming-spi/${project.version}</bundle>
-        <bundle>mvn:org.opendaylight.yangtools.model/yang-ext/2013.09.07.4-SNAPSHOT</bundle>
+        <bundle>mvn:org.opendaylight.bgpcep/programming-impl/${project.version}</bundle>
+        <bundle>mvn:org.opendaylight.yangtools.model/yang-ext/${yang-ext.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/topology-api/${project.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/programming-topology-api/${project.version}</bundle>
 
         <feature version='${yangtools.version}'>odl-yangtools-common</feature>
         <bundle>mvn:org.opendaylight.bgpcep/concepts/${project.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/util/${project.version}</bundle>
-        <bundle>mvn:org.opendaylight.yangtools.model/ietf-inet-types/2010.09.24.4-SNAPSHOT</bundle>
+        <bundle>mvn:org.opendaylight.yangtools.model/ietf-inet-types/${ietf.types.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/rsvp-api/${project.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/pcep-api/${project.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/pcep-spi/${project.version}</bundle>
     <feature name='odl-bgpcep-topology' version='${project.version}'>
         <feature version='${project.version}'>odl-bgpcep-dependencies</feature>
         <feature version='${yangtools.version}'>odl-yangtools-models</feature>
-        <bundle>mvn:org.opendaylight.yangtools.model/ietf-topology/2013.10.21.2-SNAPSHOT</bundle>
-        <bundle>mvn:org.opendaylight.yangtools.model/ietf-topology-isis/2013.10.21.2-SNAPSHOT</bundle>
-        <bundle>mvn:org.opendaylight.yangtools.model/ietf-ted/2013.10.21.2-SNAPSHOT</bundle>
-        <bundle>mvn:org.opendaylight.yangtools.model/ietf-topology-l3-unicast-igp/2013.10.21.2-SNAPSHOT</bundle>
-        <bundle>mvn:org.opendaylight.yangtools.model/ietf-topology-ospf/2013.10.21.2-SNAPSHOT</bundle>
+        <bundle>mvn:org.opendaylight.yangtools.model/ietf-topology/${ietf.topology.version}</bundle>
+        <bundle>mvn:org.opendaylight.yangtools.model/ietf-topology-isis/${ietf.topology.version}</bundle>
+        <bundle>mvn:org.opendaylight.yangtools.model/ietf-ted/${ietf.topology.version}</bundle>
+        <bundle>mvn:org.opendaylight.yangtools.model/ietf-topology-l3-unicast-igp/${ietf.topology.version}</bundle>
+        <bundle>mvn:org.opendaylight.yangtools.model/ietf-topology-ospf/${ietf.topology.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/concepts/${project.version}</bundle>
         <bundle>mvn:org.opendaylight.bgpcep/topology-api/${project.version}</bundle>
 
index 41bda86007d10ae546c853d01f18e29d78898180..fc2b1e2f258d9eaf959d215417ab5985aaadb54b 100644 (file)
         </dependency>
     </dependencies>
 
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-artifacts</id>
+                        <goals>
+                            <goal>attach-artifact</goal>
+                        </goals>
+                        <phase>package</phase>
+                        <configuration>
+                            <artifacts>
+                                <artifact>
+                                    <file>${project.build.directory}/classes/initial/32-pcep.xml</file>
+                                    <type>xml</type>
+                                    <classifier>config</classifier>
+                                </artifact>
+                                <artifact>
+                                    <file>${project.build.directory}/classes/initial/33-pcep-segment-routing.xml</file>
+                                    <type>xml</type>
+                                    <classifier>config-segment</classifier>
+                                </artifact>
+                                <artifact>
+                                    <file>${project.build.directory}/classes/initial/39-pcep-provider.xml</file>
+                                    <type>xml</type>
+                                    <classifier>config-provider</classifier>
+                                </artifact>
+                            </artifacts>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
 </project>
index b481c45d723ef47107687b3ce4a349f416ec3716..e9b8f38a81a7efe02533391eb3d580452f68ca0b 100644 (file)
         <maven>3.0.4</maven>
     </prerequisites>
 
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-artifacts</id>
+                        <goals>
+                            <goal>attach-artifact</goal>
+                        </goals>
+                        <phase>package</phase>
+                        <configuration>
+                            <artifacts>
+                                <artifact>
+                                    <file>${project.build.directory}/classes/initial/30-programming.xml</file>
+                                    <type>xml</type>
+                                    <classifier>config</classifier>
+                                </artifact>
+                            </artifacts>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
 </project>