Skip to content

Commit 19d2635

Browse files
committed
Add OSGi metadata to manifest.
Signed-off-by: Mat Booth <[email protected]>
1 parent 7d32bd8 commit 19d2635

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

bnd.bnd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Bundle-SymbolicName: org.pircbotx
2+
-exportcontents: \
3+
org.pircbotx*

pom.xml

+22
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,28 @@
310310
</execution>
311311
</executions>
312312
</plugin>
313+
<!-- Generate OSGi manifest metadata -->
314+
<plugin>
315+
<groupId>biz.aQute.bnd</groupId>
316+
<artifactId>bnd-maven-plugin</artifactId>
317+
<version>2.4.1</version>
318+
<executions>
319+
<execution>
320+
<goals>
321+
<goal>bnd-process</goal>
322+
</goals>
323+
</execution>
324+
</executions>
325+
</plugin>
326+
<!-- Use OSGi manifest instead of generating an empty one -->
327+
<plugin>
328+
<groupId>org.apache.maven.plugins</groupId>
329+
<artifactId>maven-jar-plugin</artifactId>
330+
<version>2.6</version>
331+
<configuration>
332+
<useDefaultManifestFile>true</useDefaultManifestFile>
333+
</configuration>
334+
</plugin>
313335
</plugins>
314336
</build>
315337

0 commit comments

Comments
 (0)