--- runtime/Java/pom.xml.orig	2009-09-23 19:50:28.000000000 +0100
+++ runtime/Java/pom.xml	2015-11-17 20:44:01.653318483 +0000
@@ -96,6 +96,14 @@
     </extensions>
     <plugins>
         <plugin>
+            <groupId>org.apache.felix</groupId><artifactId>maven-bundle-plugin</artifactId>
+            <executions><execution><id>bundle-manifest</id><phase>process-classes</phase><goals><goal>manifest</goal></goals></execution></executions>
+            <configuration>
+                <manifestLocation>${project.build.directory}/osgi</manifestLocation>
+                <instructions><Bundle-SymbolicName>org.antlr.runtime</Bundle-SymbolicName><Import-Package>!org.antlr.stringtemplate,*</Import-Package></instructions>
+            </configuration>
+        </plugin>
+        <plugin>
             <artifactId>maven-compiler-plugin</artifactId>
             <version>2.0.2</version>
             <configuration>
@@ -103,7 +110,12 @@
                 <target>jsr14</target>
             </configuration>
         </plugin>
-
+        <plugin>
+            <groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+                <archive><manifestFile>${project.build.directory}/osgi/MANIFEST.MF</manifestFile></archive>
+            </configuration>
+        </plugin>
         <plugin>
             <groupId>org.codehaus.mojo</groupId>
             <artifactId>findbugs-maven-plugin</artifactId>
