Initial Karaf support 69/9569/2
authorLorand Jakab <lojakab@cisco.com>
Fri, 1 Aug 2014 08:59:55 +0000 (11:59 +0300)
committerLorand Jakab <lojakab@cisco.com>
Mon, 25 Aug 2014 20:12:47 +0000 (23:12 +0300)
Change-Id: Ifcb3a52491edc85d075f0b39f1db7865a730aafd
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
commons/parent/pom.xml
features/pom.xml [new file with mode: 0644]
features/src/main/resources/features.xml [new file with mode: 0644]
pom.xml

index 2e08bf46abd5f7e6679502e7db7eaa58b72f3fc5..f576861c0c37f186ffcd121c8aae727efdba24ac 100644 (file)
@@ -38,6 +38,7 @@
                <java.version.target>1.7</java.version.target>
                <releaseplugin.version>2.3.2</releaseplugin.version>
                <slf4j.version>1.7.2</slf4j.version>
+                <karaf.version>3.0.1</karaf.version>
        </properties>
        <repositories>
 
diff --git a/features/pom.xml b/features/pom.xml
new file mode 100644 (file)
index 0000000..561edef
--- /dev/null
@@ -0,0 +1,84 @@
+<?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.lispflowmapping</groupId>
+    <artifactId>lispflowmapping-commons</artifactId>
+    <version>1.1.11-SNAPSHOT</version>
+    <relativePath>../commons/parent</relativePath>
+  </parent>
+  <artifactId>lispflowmapping-features</artifactId>
+  <name>LISP Flow Mapping Project Karaf Features</name>
+  <packaging>pom</packaging>
+  <properties>
+    <features.file>features.xml</features.file>
+  </properties>
+  <build>
+    <resources>
+      <resource>
+        <filtering>true</filtering>
+        <directory>src/main/resources</directory>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.karaf.tooling</groupId>
+        <artifactId>karaf-maven-plugin</artifactId>
+        <version>${karaf.version}</version>
+        <extensions>true</extensions>
+        <executions>
+          <execution>
+            <id>features-create-kar</id>
+            <goals>
+              <goal>features-create-kar</goal>
+            </goals>
+            <configuration>
+              <featuresFile>${project.build.directory}/classes/${features.file}</featuresFile>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <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:https://git.opendaylight.org/gerrit/p/lispflowmapping.git</connection>
+    <developerConnection>scm:git:ssh://git.opendaylight.org:29418/lispflowmapping.git</developerConnection>
+    <tag>HEAD</tag>
+    <url>https://wiki.opendaylight.org/view/OpenDaylight_Lisp_Flow_Mapping:Main</url>
+   </scm>
+</project>
diff --git a/features/src/main/resources/features.xml b/features/src/main/resources/features.xml
new file mode 100644 (file)
index 0000000..e1765ad
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<features name="lispflowmapping-${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-lispflowmapping-all" description="OpenDaylight :: LISP Flow Mapping :: all" version='${project.version}'>
+        <feature version="${lispflowmapping.version}">odl-lispflowmapping-mappingservice</feature>
+        <feature version="${lispflowmapping.version}">odl-lispflowmapping-southbound</feature>
+        <!--
+            TODO : Enable the northbound feature once AD-SAL NSF & northbound feature works in Controller project.
+        <feature version="${lispflowmapping.northbound.version}">odl-lispflowmapping-northbound</feature>
+        -->
+    </feature>
+
+    <feature name="odl-lispflowmapping-mappingservice" description="OpenDaylight :: LISP Flow Mapping :: Mapping Service" version='${lispflowmapping.version}'>
+        <feature>base-all</feature>
+        <feature version="${sal.version}">odl-adsal-all</feature>
+        <bundle>mvn:org.opendaylight.lispflowmapping/mappingservice.api/${lispflowmapping.version}</bundle>
+        <bundle>mvn:org.opendaylight.lispflowmapping/mappingservice.implementation/${lispflowmapping.version}</bundle>
+        <bundle>mvn:org.opendaylight.lispflowmapping/mappingservice.clusterdao/${lispflowmapping.version}</bundle>
+    </feature>
+
+    <feature name="odl-lispflowmapping-southbound" description="OpenDaylight :: LISP Flow Mapping :: Southbound Plugin" version='${lispflowmapping.version}'>
+        <feature version="${lispflowmapping.version}">odl-lispflowmapping-mappingservice</feature>
+        <bundle>mvn:org.opendaylight.lispflowmapping/mappingservice.southbound/${lispflowmapping.version}</bundle>
+    </feature>
+<!--
+    ADSAL Northbound and NSFs are not broken into Karaf Features yet.
+    Also, the ADSAL Northbound is not modular enough to easily isolate it into bit-sized feature.
+    It has a chain of AD-SAL NSF dependencies and hence the Controller project has not completed the AD-SAL karaf version.
+
+    TODO : Enable the northbound feature once AD-SAL northbound feature is working in Controller project.
+
+    <feature name="odl-lispflowmapping-northbound" description="OpenDaylight :: LISP Flow Mapping :: Northbound" version='${lispflowmapping.version}'>
+        <feature version="${lispflowmapping.version}">odl-lispflowmapping-mappingservice</feature>
+        <bundle>mvn:org.opendaylight.lispflowmapping/mappingservice.northbound/${lispflowmapping.version}</bundle>
+    </feature>
+
+-->
+</features>
diff --git a/pom.xml b/pom.xml
index a2ce90f06d714c527f3e7062edfba745a8b6453b..c5e687ebb2f92d83a8a77f7409420cd18abfbfc6 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -24,6 +24,7 @@
     <module>commons/code-parent</module>
     <module>commons/unittest_tools</module>
     <module>mappingservice</module>
+    <module>features</module>
     <module>distribution</module>
   </modules>