|
Page Edited :
FELIX :
Creating Bundles Using BND
Creating Bundles Using BND has been edited by Marcel Offermans (Sep 20, 2007). Change summary: Changed the Apache Felix URL in the code sample. PurposeProvide the list of steps required to create a library bundle by wrapping the library jar using bnd (http://www.aqute.biz/Code/Bnd Steps
Example POM<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.apache.felix.commons</groupId> <artifactId>FOO-osgi</artifactId> <name>${pom.artifactId} bundle</name> <description> This bundle simply wraps FOO-${pom.version}.jar. </description> <version>X.Y</version> <packaging>bundle</packaging> <organization> <name>Apache Felix Project</name> <url>http://felix.apache.org/</url> </organization> <dependencies> <dependency> <groupId>FOO</groupId> <artifactId>FOO</artifactId> <version>${pom.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> <Export-Package>FOO</Export-Package> <Private-Package>FOO.impl</Private-Package> </instructions> </configuration> </plugin> </plugins> </build> </project> ResourcesBnd - Bundle Tool Bundle Plugin for Maven |
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Unsubscribe or edit your notifications preferences
