Added OSGi metadata to yangtools artifacts.
[yangtools.git] / code-generator / binding-model-api / pom.xml
index 5c8dc5ba4ebc3c8fb0d0e2dc29a67594630e7e28..f14df407e00cccfcc6b57992b66b60671ce257e9 100644 (file)
     <modelVersion>4.0.0</modelVersion>
     <artifactId>binding-model-api</artifactId>
     <name>${project.artifactId}</name>
+    <packaging>bundle</packaging>
     <description>${project.artifactId}</description>
 
     <dependencies>
-       <dependency>
-               <groupId>org.opendaylight.yangtools</groupId>           
-               <artifactId>yang-model-api</artifactId>
+        <dependency>
+            <groupId>org.opendaylight.yangtools</groupId>
+            <artifactId>yang-model-api</artifactId>
                <version>0.5.7-SNAPSHOT</version>               
-       </dependency>
+        </dependency>
     </dependencies>
+
+    <build>
+        <plugins>
+            <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>
+                        <Export-Package>
+                            org.opendaylight.yangtools.sal.binding.model.api,
+                            org.opendaylight.yangtools.sal.binding.model.api.type.builder
+                        </Export-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>