Skip to content
Browse files

Fix to allow Jline as an OSGi bundle, by Guillaume Nodet.

  • Loading branch information...
1 parent 311243d commit 0395d2e5af376346ecb45261b0f6352925815796 @headius headius committed Jul 21, 2009
Showing with 28 additions and 0 deletions.
  1. +28 −0 pom.xml
View
28 pom.xml
@@ -150,6 +150,34 @@ To make a bundle and request that ibilio upload it, do:
</descriptors>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>2.0.0</version>
+ <executions>
+ <execution>
+ <id>bundle-manifest</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ <configuration>
+ <instructions>
+ <Import-Package>!jline*,javax.swing;resolution:=optional,*</Import-Package>
+ <DynamicImport-Package>*</DynamicImport-Package>
+ </instructions>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ </configuration>
+ </plugin>
</plugins>
</build>

0 comments on commit 0395d2e

Please sign in to comment.
Something went wrong with that request. Please try again.