Skip to content

Commit 9308b68

Browse files
committed
Create cal10n-api bundle with corrected Export-Package manifest entry
1 parent 4e60753 commit 9308b68

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

cal10n-api/pom.xml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>thirdparty</artifactId>
7+
<groupId>org.codice</groupId>
8+
<version>1.0.0</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>cal10n-api</artifactId>
13+
<packaging>bundle</packaging>
14+
<version>0.8.1_1</version>
15+
<description>
16+
As of version 0.8.1, the cal10n-api jar in maven central has an empty Export-Package
17+
manifest entry, making it unusable in OSGi. This repackages the bundle, exporting the
18+
appropriate packages.
19+
20+
For more info, see https://github.com/qos-ch/cal10n/pull/2
21+
</description>
22+
23+
<properties>
24+
<cal10n.version>0.8.1</cal10n.version>
25+
</properties>
26+
27+
<dependencies>
28+
<dependency>
29+
<groupId>ch.qos.cal10n</groupId>
30+
<artifactId>cal10n-api</artifactId>
31+
<version>${cal10n.version}</version>
32+
</dependency>
33+
</dependencies>
34+
35+
<build>
36+
<plugins>
37+
<plugin>
38+
<groupId>org.apache.felix</groupId>
39+
<artifactId>maven-bundle-plugin</artifactId>
40+
<extensions>true</extensions>
41+
<configuration>
42+
<instructions>
43+
<Bundle-SymbolicName>cal10n.api</Bundle-SymbolicName>
44+
<Bundle-Name>cal10n-api</Bundle-Name>
45+
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
46+
<Private-Package>*</Private-Package>
47+
<Export-Package>
48+
ch.qos.cal10n,
49+
ch.qos.cal10n.util
50+
</Export-Package>
51+
<Import-Package/>
52+
</instructions>
53+
</configuration>
54+
</plugin>
55+
</plugins>
56+
</build>
57+
58+
</project>

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<module>ffmpeg</module>
3535
<module>tika-bundle</module>
3636
<module>javalin</module>
37+
<module>cal10n-api</module>
3738
</modules>
3839

3940
<scm>

0 commit comments

Comments
 (0)