Skip to content

Instantly share code, notes, and snippets.

@evandor
Last active December 26, 2015 01:38
Show Gist options
  • Save evandor/7072288 to your computer and use it in GitHub Desktop.
Save evandor/7072288 to your computer and use it in GitHub Desktop.
minimal pom file for converting jar into OSGi bundle
<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>
<groupId>de.twentyeleven.osgiexamples</groupId>
<artifactId>org.antlr.stringtemplate-osgi</artifactId>
<packaging>bundle</packaging>
<name>OSGi stringtemplate classes</name>
<version>4.0.2</version>
<dependencies>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>stringtemplate</artifactId>
<version>4.0.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<_include>-osgi.bnd</_include>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment