Initial openflowjava Karaf feature file 56/6756/3
authorEd Warnicke <eaw@cisco.com>
Tue, 6 May 2014 18:24:18 +0000 (13:24 -0500)
committerEd Warnicke <eaw@cisco.com>
Tue, 6 May 2014 18:54:38 +0000 (13:54 -0500)
PatchSet2: Stop using wrap when unneeded.
PatchSet3: Removed spurious config-all feature

Change-Id: Ibe67d9debb841bf93dd846e1f694019dea3c43b2
Signed-off-by: Ed Warnicke <eaw@cisco.com>
feature/pom.xml [new file with mode: 0644]
feature/src/main/resources/features.xml [new file with mode: 0644]
pom.xml

diff --git a/feature/pom.xml b/feature/pom.xml
new file mode 100644 (file)
index 0000000..bfd110c
--- /dev/null
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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.openflowjava</groupId>
+    <artifactId>openflow-protocol-parent</artifactId>
+    <version>0.5-SNAPSHOT</version>
+  </parent>
+  <artifactId>openflowjava-features</artifactId>
+  <name>Openflow Protocol Library - Karaf Features</name>
+
+  <packaging>pom</packaging>
+
+  <properties>
+    <features.file>features.xml</features.file>
+  </properties>
+
+  <dependencies></dependencies>
+
+  <build>
+    <resources>
+      <resource>
+        <filtering>true</filtering>
+        <directory>src/main/resources</directory>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-resources-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>filter</id>
+            <goals>
+              <goal>resources</goal>
+            </goals>
+            <phase>generate-resources</phase>
+          </execution>
+        </executions>
+      </plugin>
+      <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/${features.file}</file>
+                  <type>xml</type>
+                  <classifier>features</classifier>
+                </artifact>
+              </artifacts>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  <scm>
+    <connection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</connection>
+    <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</developerConnection>
+    <tag>HEAD</tag>
+    <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
+  </scm>
+</project>
diff --git a/feature/src/main/resources/features.xml b/feature/src/main/resources/features.xml
new file mode 100644 (file)
index 0000000..1692a3d
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<features name="config-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.2.0"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.2.0 http://karaf.apache.org/xmlns/features/v1.2.0">
+
+    <feature name='odl-openflowjava' version='${project.version}'>
+        <feature version='${yangtools.version}'>yangtools-concepts</feature>
+        <feature version='${yangtools.version}'>yangtools-binding</feature>
+        <feature version='${yangtools.version}'>yangtools-binding-generator</feature>
+        <feature version='${yangtools.version}'>yangtools-models</feature>
+        <feature version='${config.version}'>odl-config-subsystem</feature>
+        <bundle>mvn:io.netty/netty-buffer/${netty.version}</bundle>
+        <bundle>mvn:io.netty/netty-common/${netty.version}</bundle>
+        <bundle>mvn:io.netty/netty-transport/${netty.version}</bundle>
+        <bundle>mvn:io.netty/netty-codec/${netty.version}</bundle>
+        <bundle>mvn:io.netty/netty-handler/${netty.version}</bundle>
+        <bundle>mvn:org.opendaylight.openflowjava/openflow-protocol-api/${project.version}</bundle>
+        <bundle>mvn:org.opendaylight.openflowjava/openflow-protocol-spi/${project.version}</bundle>
+        <bundle>mvn:org.opendaylight.openflowjava/openflow-protocol-impl/${project.version}</bundle>
+    </feature>
+</features>
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 623e85a768bf7a7a60786235707d8bfb0b8c0262..7e78ede8c471e3672c6d6a438328d3ef26e64230 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -9,6 +9,7 @@
         <module>openflow-protocol-spi</module>
         <module>openflow-protocol-impl</module>
         <module>openflow-protocol-it</module>
+        <module>feature</module>
         <module>simple-client</module>
     </modules>
     <scm>