Skip to content

Commit 97a76ea

Browse files
authored
Merge pull request #45 from zspitzer/add-osgi
add osgi metadata
2 parents 0960710 + 44e7828 commit 97a76ea

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,42 @@
3434
</dependencies>
3535

3636
<build>
37+
<pluginManagement>
38+
<plugins>
39+
<plugin>
40+
<artifactId>maven-jar-plugin</artifactId>
41+
<configuration>
42+
<archive>
43+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
44+
</archive>
45+
</configuration>
46+
</plugin>
47+
<plugin>
48+
<groupId>org.apache.felix</groupId>
49+
<artifactId>maven-bundle-plugin</artifactId>
50+
<version>5.1.9</version>
51+
<configuration>
52+
<instructions>
53+
<Import-Package>
54+
!java
55+
</Import-Package>
56+
<Export-Package>
57+
{local-packages}
58+
</Export-Package>
59+
</instructions>
60+
</configuration>
61+
<executions>
62+
<execution>
63+
<id>bundle-manifest</id>
64+
<phase>process-classes</phase>
65+
<goals>
66+
<goal>manifest</goal>
67+
</goals>
68+
</execution>
69+
</executions>
70+
</plugin>
71+
</plugins>
72+
</pluginManagement>
3773
<plugins>
3874
<plugin>
3975
<groupId>org.apache.maven.plugins</groupId>
@@ -105,6 +141,10 @@
105141
<goals>deploy</goals>
106142
</configuration>
107143
</plugin>
144+
<plugin>
145+
<groupId>org.apache.felix</groupId>
146+
<artifactId>maven-bundle-plugin</artifactId>
147+
</plugin>
108148
</plugins>
109149
</build>
110150

0 commit comments

Comments
 (0)