Skip to content

Commit 88bedd3

Browse files
Elliotte Rusty Haroldmattwhisenhunt
authored andcommitted
add OSGI metadata
1 parent b107c13 commit 88bedd3

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

google-api-client/pom.xml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,42 @@
3636
<configuration>
3737
<archive>
3838
<manifest>
39-
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
39+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
4040
</manifest>
41+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
4142
</archive>
4243
</configuration>
4344
<executions>
4445
<execution>
4546
<id>jar</id>
46-
<phase>compile</phase>
47+
<phase>package</phase>
4748
<goals>
4849
<goal>jar</goal>
4950
</goals>
5051
</execution>
5152
</executions>
5253
</plugin>
54+
<plugin>
55+
<groupId>org.apache.felix</groupId>
56+
<artifactId>maven-bundle-plugin</artifactId>
57+
<version>2.5.4</version>
58+
<executions>
59+
<execution>
60+
<id>bundle-manifest</id>
61+
<phase>process-classes</phase>
62+
<goals>
63+
<goal>manifest</goal>
64+
</goals>
65+
</execution>
66+
</executions>
67+
<configuration>
68+
<instructions>
69+
<Bundle-DocURL>https://developers.google.com/api-client-library/java/</Bundle-DocURL>
70+
<Bundle-Description>The Google API Client Library for Java provides functionality common to all Google APIs; for example HTTP transport, error handling, authentication, JSON parsing, media download/upload, and batching.</Bundle-Description>
71+
<Bundle-SymbolicName>com.google.api.client.googleapis</Bundle-SymbolicName>
72+
</instructions>
73+
</configuration>
74+
</plugin>
5375
<plugin>
5476
<artifactId>maven-source-plugin</artifactId>
5577
<executions>

0 commit comments

Comments
 (0)