Skip to content

Commit 53abadc

Browse files
mbarberoCharles Fry
authored andcommitted
add osgi metadata
1 parent 1e20904 commit 53abadc

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

guava/pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,40 @@
4242
</dependencies>
4343
<build>
4444
<plugins>
45+
<plugin>
46+
<artifactId>maven-jar-plugin</artifactId>
47+
<configuration>
48+
<archive>
49+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
50+
</archive>
51+
</configuration>
52+
</plugin>
53+
<plugin>
54+
<groupId>org.apache.felix</groupId>
55+
<artifactId>maven-bundle-plugin</artifactId>
56+
<executions>
57+
<execution>
58+
<id>bundle-manifest</id>
59+
<phase>process-classes</phase>
60+
<goals>
61+
<goal>manifest</goal>
62+
</goals>
63+
</execution>
64+
</executions>
65+
<configuration>
66+
<instructions>
67+
<Bundle-SymbolicName>${project.groupId}</Bundle-SymbolicName>
68+
<Bundle-Name>${project.name}</Bundle-Name>
69+
<Bundle-Version>${project.version}</Bundle-Version>
70+
<Export-Package>com.google.common.*</Export-Package>
71+
<Private-Package>com.google.common.base.internal.*</Private-Package>
72+
<Import-Package>
73+
javax.annotation;resolution:=optional,
74+
sun.misc.*;resolution:=optional
75+
</Import-Package>
76+
</instructions>
77+
</configuration>
78+
</plugin>
4579
<plugin>
4680
<groupId>org.apache.maven.plugins</groupId>
4781
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)