Init bundle files for ovs-sfc. 05/9505/3
authorSam Hague <shague@redhat.com>
Wed, 30 Jul 2014 19:41:19 +0000 (15:41 -0400)
committerSam Hague <shague@redhat.com>
Sun, 3 Aug 2014 21:59:42 +0000 (17:59 -0400)
Change-Id: Ia0a4985c4fed44562de8804cbdbe71f07d06514b
Signed-off-by: Sam Hague <shague@redhat.com>
ovs-sfc/pom.xml [new file with mode: 0644]
ovs-sfc/src/main/java/org/opendaylight/ovsdb/ovssfc/internal/Activator.java [new file with mode: 0644]
pom.xml

diff --git a/ovs-sfc/pom.xml b/ovs-sfc/pom.xml
new file mode 100644 (file)
index 0000000..e27a690
--- /dev/null
@@ -0,0 +1,82 @@
+<?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.ovsdb</groupId>
+        <artifactId>commons</artifactId>
+        <version>1.2.0-SNAPSHOT</version>
+        <relativePath>../commons/parent</relativePath>
+    </parent>
+
+    <artifactId>ovs-sfc</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <name>Opendaylight OVS SFC Plugin</name>
+    <packaging>bundle</packaging>
+
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.opendaylight.controller</groupId>
+            <artifactId>sal</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <version>2.3.6</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            org.opendaylight.controller.sal.core,
+                            org.slf4j
+                        </Import-Package>
+                        <Export-Package>
+                            org.opendaylight.ovsdb.ovssfc
+                        </Export-Package>
+                        <Bundle-Activator>org.opendaylight.ovsdb.ovssfc.internal.Activator</Bundle-Activator>
+                    </instructions>
+                    <manifestLocation>${project.basedir}/META-INF</manifestLocation>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+            </plugin>
+            <!--
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-failsafe-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
+            </plugin>
+            -->
+        </plugins>
+    </build>
+
+    <scm>
+        <connection>scm:git:ssh://git.opendaylight.org:29418/ovsdb.git</connection>
+        <developerConnection>scm:git:ssh://git.opendaylight.org:29418/ovsdb.git</developerConnection>
+        <tag>HEAD</tag>
+        <url>https://wiki.opendaylight.org/view/OVSDB_Integration:Main</url>
+    </scm>
+</project>
diff --git a/ovs-sfc/src/main/java/org/opendaylight/ovsdb/ovssfc/internal/Activator.java b/ovs-sfc/src/main/java/org/opendaylight/ovsdb/ovssfc/internal/Activator.java
new file mode 100644 (file)
index 0000000..75c82fc
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2014 Red Hat, Inc.
+ *
+ * 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
+ *
+ * Authors : Sam Hague
+ */
+package org.opendaylight.ovsdb.ovssfc.internal;
+
+import org.opendaylight.controller.sal.core.ComponentActivatorAbstractBase;
+
+public class Activator extends ComponentActivatorAbstractBase {
+
+    /**
+     * Function called when the activator starts just after some initializations
+     * are done by the ComponentActivatorAbstractBase.
+     */
+    @Override
+    public void init() {
+    }
+
+    /**
+     * Function called when the activator stops just before the cleanup done by
+     * ComponentActivatorAbstractBase
+     *
+     */
+    @Override
+    public void destroy() {
+    }
+}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 5b11cb7494c2c776d5fbd46d55dab625eaaf5b2d..e4044dad8fa00cead93b94f789e78f3b22f1c4c0 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -29,6 +29,7 @@
     <module>northbound</module>
     <module>openstack/net-virt</module>
     <module>openstack/net-virt-providers</module>
+    <module>ovs-sfc</module>
     <!-- Integration Tests -->
     <module>integrationtest</module>
     <!-- Karaf Distribution -->