Added bundle to serve node module 53/9753/8
authorGabriel Robitaille-Montpetit <grmontpetit@inocybe.com>
Thu, 4 Sep 2014 19:13:32 +0000 (15:13 -0400)
committerGabriel Robitaille-Montpetit <grmontpetit@inocybe.com>
Thu, 4 Sep 2014 19:15:16 +0000 (15:15 -0400)
Change-Id: Iad2a2ec5a52253b75718eb184edb1c52546e2279
Signed-off-by: Gabriel Robitaille-Montpetit <grmontpetit@inocybe.com>
bundles/node/.gitignore [new file with mode: 0644]
bundles/node/pom.xml [new file with mode: 0644]
bundles/node/src/main/resources/OSGI-INF/blueprint/blueprint.xml [new file with mode: 0644]

diff --git a/bundles/node/.gitignore b/bundles/node/.gitignore
new file mode 100644 (file)
index 0000000..f8cf74f
--- /dev/null
@@ -0,0 +1,29 @@
+*.class
+**/target
+bin/
+dist
+**/logs
+products
+repository
+workspace
+*~
+target
+target-ide
+.classpath
+.project
+.settings
+MANIFEST.MF
+opendaylight/northbound/integrationtest/logs/*
+*.ipr
+*.iml
+*.iws
+.idea
+xtend-gen
+yang-gen-config
+yang-gen-sal
+classes
+out/
+.externalToolBuilders
+maven-eclipse.xml
+.DS_STORE
+.metadata
diff --git a/bundles/node/pom.xml b/bundles/node/pom.xml
new file mode 100644 (file)
index 0000000..dd9bdae
--- /dev/null
@@ -0,0 +1,93 @@
+<?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.dlux</groupId>
+    <artifactId>dlux-parent</artifactId>
+    <version>0.1.0-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+  <groupId>org.opendaylight.dlux</groupId>
+  <artifactId>dlux.node</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+  <packaging>bundle</packaging>
+  <dependencies>
+    <dependency>
+      <groupId>org.osgi</groupId>
+      <artifactId>org.osgi.core</artifactId>
+      <version>5.0.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.osgi</groupId>
+      <artifactId>org.osgi.compendium</artifactId>
+      <version>4.2.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.felix</groupId>
+      <artifactId>org.osgi.compendium</artifactId>
+      <version>1.4.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>jcl-over-slf4j</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.opendaylight.dlux</groupId>
+      <artifactId>loader</artifactId>
+      <version>1.0.0-SNAPSHOT</version>
+    </dependency>
+     <dependency>
+      <groupId>org.opendaylight.dlux</groupId>
+      <artifactId>dlux.node.resources</artifactId>
+      <version>${node.resources.version}</version>
+    </dependency>
+  </dependencies>
+ <build>
+    <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <version>2.6</version>
+        <executions>
+     <!--loader Resources-->
+          <execution>
+            <id>unpack-loader-resources</id>
+            <goals>
+              <goal>unpack-dependencies</goal>
+            </goals>
+            <phase>generate-resources</phase>
+            <configuration>
+              <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
+              <groupId>org.opendaylight.dlux</groupId>
+              <includeArtifactIds>dlux.core.resources</includeArtifactIds>
+              <excludes>META-INF\/**</excludes>
+              <excludeTransitive>true</excludeTransitive>
+              <ignorePermissions>false</ignorePermissions>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            <Import-Package>org.osgi.service.http,
+                            org.osgi.framework;version="1.0.0",
+                            org.opendaylight.dlux.loader,
+                            org.slf4j
+            </Import-Package>
+            <Export-Package></Export-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <scm>
+    <connection>scm:git:ssh://git.opendaylight.org:29418/dlux.git</connection>
+    <developerConnection>scm:git:ssh://git.opendaylight.org:29418/dlux.git</developerConnection>
+    <tag>HEAD</tag>
+    <url>https://wiki.opendaylight.org/view/OpenDaylight_dlux:Main</url>
+  </scm>
+</project>
diff --git a/bundles/node/src/main/resources/OSGI-INF/blueprint/blueprint.xml b/bundles/node/src/main/resources/OSGI-INF/blueprint/blueprint.xml
new file mode 100644 (file)
index 0000000..0a26e29
--- /dev/null
@@ -0,0 +1,13 @@
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
+       <reference id="httpService" availability="mandatory" activation="eager" interface="org.osgi.service.http.HttpService"/>
+       <reference id="loader" availability="mandatory" activation="eager" interface="org.opendaylight.dlux.bootstrapper.IDluxBootstrapperRegistration"/>
+
+    <bean id="bundle" init-method="init" class="org.opendaylight.dlux.loader.DluxModule">
+      <property name="httpService" ref="httpService"/>
+      <property name="loader" ref="loader"/>
+      <property name="moduleName" value="node"/>
+      <property name="url" value="/src/common/node"/>
+      <property name="requireJs" value="common/node/nodes.module"/>
+      <property name="angularJs" value="app.nodes"/>
+    </bean>
+</blueprint>
\ No newline at end of file