add bundle support for library
[openflowjava.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index ff99572be59223e705f358ba9d7c5dfff4d783f7..eb5c77f55399755c5376de3f310ac332cff5c570 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -28,8 +28,9 @@
         <sonar.branch>${user.name}-private-view</sonar.branch>
         <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
         <logback.version>1.0.9</logback.version>
-        <slf4j.version>1.7.2</slf4j.version>
+        <slf4j.version>1.7.5</slf4j.version>
        <yang.prototype.version>1.0-SNAPSHOT</yang.prototype.version>
+       <maven.bundle.version>2.4.0</maven.bundle.version>
     </properties>
 
     <pluginRepositories>
             <dependency>
                 <groupId>org.slf4j</groupId>
                 <artifactId>slf4j-api</artifactId>
-                <version>1.7.2</version>
+                <version>${slf4j.version}</version>
             </dependency>
         </dependencies>
     </dependencyManagement>
                     </execution> 
                 </executions> 
             </plugin> 
+            <plugin>
+              <groupId>org.apache.felix</groupId>
+              <artifactId>maven-bundle-plugin</artifactId>
+              <version>${maven.bundle.version}</version>
+              <extensions>true</extensions>
+              <configuration>
+                <instructions>
+                  <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
+                </instructions>
+                <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
+              </configuration>
+            </plugin>
         </plugins>
         <pluginManagement>
             <plugins>