Started draft of features file for karaf distro 95/9495/3
authorJonathan Fok kan <jfokkan@inocybe.com>
Wed, 30 Jul 2014 15:13:27 +0000 (11:13 -0400)
committerJonathan Fok kan <jfokkan@inocybe.com>
Wed, 30 Jul 2014 17:30:20 +0000 (13:30 -0400)
When installed in karaf odl-packetcable gives:

org.pcmm.PCMMPdpAgent:Error socket
 -Reason: Connection timed out

Change-Id: I34f5b9b3969533e8350c2a5bd2eb72267a2af1a2
Signed-off-by: Jonathan Fok kan <jfokkan@inocybe.com>
features/pom.xml [new file with mode: 0644]
features/src/main/resources/features.xml [new file with mode: 0644]

diff --git a/features/pom.xml b/features/pom.xml
new file mode 100644 (file)
index 0000000..d0881ee
--- /dev/null
@@ -0,0 +1,89 @@
+<?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.packetcable</groupId>
+    <artifactId>packetcable-parent</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+  </parent>
+  <groupId>org.opendaylight.packetcable</groupId>
+  <artifactId>packetcable-features</artifactId>
+  <name>PacketCable - 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.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:ssh://git.opendaylight.org:29418/packetcable.git</connection>
+    <developerConnection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</developerConnection>
+    <tag>HEAD</tag>
+    <url>https://wiki.opendaylight.org/view/PacketCablePCMM: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..26c65ba
--- /dev/null
@@ -0,0 +1,16 @@
+<?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-packetcable' version='${project.version}'>
+      <feature>yangtools-all</feature>
+      <feature>odl-mdsal-models</feature>
+      <feature>odl-adsal-all</feature>
+      <bundle>mvn:org.opendaylight.packetcable/packetcable-model/1.0.0-SNAPSHOT</bundle>
+      <bundle>mvn:org.opendaylight.packetcable/protocol_plugins.packetcable/0.5.1-SNAPSHOT</bundle>
+    </feature>
+
+</features>