Skip to content

Instantly share code, notes, and snippets.

@robstryker
Created February 10, 2020 21:27
Show Gist options
  • Save robstryker/42a6b0cb11fa56ca942d61aabe11915e to your computer and use it in GitHub Desktop.
Save robstryker/42a6b0cb11fa56ca942d61aabe11915e to your computer and use it in GitHub Desktop.
simple osgi 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">
<groupId>org.wso2.mbp</groupId>
<modelVersion>4.0.0</modelVersion>
<artifactId>sample01</artifactId>
<version>1.0.0</version>
<packaging>bundle</packaging>
<name>Sample01</name>
<description>A Simple Bundle which print "Hello World" and "Goodbye World"</description>
<url>http://www.wso2.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${pom.name}</Bundle-Name>
<Bundle-Version>${pom.version}</Bundle-Version>
<Bundle-Activator>org.wso2.mbp.sample01.Activator</Bundle-Activator>
<Private-Package>org.wso2.mbp.sample01</Private-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.osgi.core</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>apache-Incubating-repo</id>
<name>Maven Incubating Repository</name>
<url>http://people.apache.org/repo/m2-incubating-repository</url>
</repository>
</repositories>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment