Skip to content

Commit 06427d9

Browse files
authored
Merge pull request #516 from danfickle/osgi_metadata
#510 Use Apache Felix maven-bundle-plugin to add osgi metadata.
2 parents 1feca4c + 1461470 commit 06427d9

File tree

10 files changed

+339
-1
lines changed

10 files changed

+339
-1
lines changed

openhtmltopdf-core/pom.xml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111

1212
<artifactId>openhtmltopdf-core</artifactId>
13-
<description>Open HTML to PDF is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code as well as Java2D output.</description>
13+
<description>Open HTML to PDF is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code.</description>
1414

1515
<licenses>
1616
<license>
@@ -51,5 +51,41 @@
5151
</includes>
5252
</resource>
5353
</resources>
54+
55+
<plugins>
56+
57+
<plugin>
58+
<groupId>org.apache.maven.plugins</groupId>
59+
<artifactId>maven-jar-plugin</artifactId>
60+
<version>${open.jar.plugin.version}</version>
61+
<configuration>
62+
<archive>
63+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
64+
</archive>
65+
</configuration>
66+
</plugin>
67+
68+
<plugin>
69+
<groupId>org.apache.felix</groupId>
70+
<artifactId>maven-bundle-plugin</artifactId>
71+
<version>${open.bundle.plugin.version}</version>
72+
<configuration>
73+
<instructions>
74+
<Export-Package>*</Export-Package>
75+
</instructions>
76+
</configuration>
77+
78+
<executions>
79+
<execution>
80+
<id>bundle-manifest</id>
81+
<phase>process-classes</phase>
82+
<goals>
83+
<goal>manifest</goal>
84+
</goals>
85+
</execution>
86+
</executions>
87+
</plugin>
88+
89+
</plugins>
5490
</build>
5591
</project>

openhtmltopdf-java2d/pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,42 @@
4646
</includes>
4747
</resource>
4848
</resources>
49+
50+
<plugins>
51+
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-jar-plugin</artifactId>
55+
<version>${open.jar.plugin.version}</version>
56+
<configuration>
57+
<archive>
58+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
59+
</archive>
60+
</configuration>
61+
</plugin>
62+
63+
<plugin>
64+
<groupId>org.apache.felix</groupId>
65+
<artifactId>maven-bundle-plugin</artifactId>
66+
<version>${open.bundle.plugin.version}</version>
67+
<configuration>
68+
<instructions>
69+
<Export-Package>*</Export-Package>
70+
</instructions>
71+
</configuration>
72+
73+
<executions>
74+
<execution>
75+
<id>bundle-manifest</id>
76+
<phase>process-classes</phase>
77+
<goals>
78+
<goal>manifest</goal>
79+
</goals>
80+
</execution>
81+
</executions>
82+
</plugin>
83+
84+
</plugins>
85+
4986
</build>
5087
</project>

openhtmltopdf-latex-support/pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,43 @@
5858
</includes>
5959
</resource>
6060
</resources>
61+
62+
<plugins>
63+
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-jar-plugin</artifactId>
67+
<version>${open.jar.plugin.version}</version>
68+
<configuration>
69+
<archive>
70+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
71+
</archive>
72+
</configuration>
73+
</plugin>
74+
75+
<plugin>
76+
<groupId>org.apache.felix</groupId>
77+
<artifactId>maven-bundle-plugin</artifactId>
78+
<version>${open.bundle.plugin.version}</version>
79+
<configuration>
80+
<instructions>
81+
<Export-Package>*</Export-Package>
82+
</instructions>
83+
</configuration>
84+
85+
<executions>
86+
<execution>
87+
<id>bundle-manifest</id>
88+
<phase>process-classes</phase>
89+
<goals>
90+
<goal>manifest</goal>
91+
</goals>
92+
</execution>
93+
</executions>
94+
</plugin>
95+
96+
</plugins>
97+
6198
</build>
6299
</project>
63100

openhtmltopdf-mathml-support/pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,42 @@
6060
</includes>
6161
</resource>
6262
</resources>
63+
64+
<plugins>
65+
66+
<plugin>
67+
<groupId>org.apache.maven.plugins</groupId>
68+
<artifactId>maven-jar-plugin</artifactId>
69+
<version>${open.jar.plugin.version}</version>
70+
<configuration>
71+
<archive>
72+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
73+
</archive>
74+
</configuration>
75+
</plugin>
76+
77+
<plugin>
78+
<groupId>org.apache.felix</groupId>
79+
<artifactId>maven-bundle-plugin</artifactId>
80+
<version>${open.bundle.plugin.version}</version>
81+
<configuration>
82+
<instructions>
83+
<Export-Package>*</Export-Package>
84+
</instructions>
85+
</configuration>
86+
87+
<executions>
88+
<execution>
89+
<id>bundle-manifest</id>
90+
<phase>process-classes</phase>
91+
<goals>
92+
<goal>manifest</goal>
93+
</goals>
94+
</execution>
95+
</executions>
96+
</plugin>
97+
98+
</plugins>
99+
63100
</build>
64101
</project>

openhtmltopdf-objects/pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,42 @@
7272
</includes>
7373
</resource>
7474
</resources>
75+
76+
<plugins>
77+
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-jar-plugin</artifactId>
81+
<version>${open.jar.plugin.version}</version>
82+
<configuration>
83+
<archive>
84+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
85+
</archive>
86+
</configuration>
87+
</plugin>
88+
89+
<plugin>
90+
<groupId>org.apache.felix</groupId>
91+
<artifactId>maven-bundle-plugin</artifactId>
92+
<version>${open.bundle.plugin.version}</version>
93+
<configuration>
94+
<instructions>
95+
<Export-Package>*</Export-Package>
96+
</instructions>
97+
</configuration>
98+
99+
<executions>
100+
<execution>
101+
<id>bundle-manifest</id>
102+
<phase>process-classes</phase>
103+
<goals>
104+
<goal>manifest</goal>
105+
</goals>
106+
</execution>
107+
</executions>
108+
</plugin>
109+
110+
</plugins>
111+
75112
</build>
76113
</project>

openhtmltopdf-pdfbox/pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,43 @@
7979
</includes>
8080
</resource>
8181
</resources>
82+
83+
<plugins>
84+
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-jar-plugin</artifactId>
88+
<version>${open.jar.plugin.version}</version>
89+
<configuration>
90+
<archive>
91+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
92+
</archive>
93+
</configuration>
94+
</plugin>
95+
96+
<plugin>
97+
<groupId>org.apache.felix</groupId>
98+
<artifactId>maven-bundle-plugin</artifactId>
99+
<version>${open.bundle.plugin.version}</version>
100+
<configuration>
101+
<instructions>
102+
<Export-Package>*</Export-Package>
103+
</instructions>
104+
</configuration>
105+
106+
<executions>
107+
<execution>
108+
<id>bundle-manifest</id>
109+
<phase>process-classes</phase>
110+
<goals>
111+
<goal>manifest</goal>
112+
</goals>
113+
</execution>
114+
</executions>
115+
</plugin>
116+
117+
</plugins>
118+
82119
</build>
83120

84121
<properties>

openhtmltopdf-rtl-support/pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,43 @@
5353
</includes>
5454
</resource>
5555
</resources>
56+
57+
<plugins>
58+
59+
<plugin>
60+
<groupId>org.apache.maven.plugins</groupId>
61+
<artifactId>maven-jar-plugin</artifactId>
62+
<version>${open.jar.plugin.version}</version>
63+
<configuration>
64+
<archive>
65+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
66+
</archive>
67+
</configuration>
68+
</plugin>
69+
70+
<plugin>
71+
<groupId>org.apache.felix</groupId>
72+
<artifactId>maven-bundle-plugin</artifactId>
73+
<version>${open.bundle.plugin.version}</version>
74+
<configuration>
75+
<instructions>
76+
<Export-Package>*</Export-Package>
77+
</instructions>
78+
</configuration>
79+
80+
<executions>
81+
<execution>
82+
<id>bundle-manifest</id>
83+
<phase>process-classes</phase>
84+
<goals>
85+
<goal>manifest</goal>
86+
</goals>
87+
</execution>
88+
</executions>
89+
</plugin>
90+
91+
</plugins>
92+
93+
5694
</build>
5795
</project>

openhtmltopdf-slf4j/pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,42 @@
7777
</includes>
7878
</resource>
7979
</resources>
80+
81+
<plugins>
82+
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-jar-plugin</artifactId>
86+
<version>${open.jar.plugin.version}</version>
87+
<configuration>
88+
<archive>
89+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
90+
</archive>
91+
</configuration>
92+
</plugin>
93+
94+
<plugin>
95+
<groupId>org.apache.felix</groupId>
96+
<artifactId>maven-bundle-plugin</artifactId>
97+
<version>${open.bundle.plugin.version}</version>
98+
<configuration>
99+
<instructions>
100+
<Export-Package>*</Export-Package>
101+
</instructions>
102+
</configuration>
103+
104+
<executions>
105+
<execution>
106+
<id>bundle-manifest</id>
107+
<phase>process-classes</phase>
108+
<goals>
109+
<goal>manifest</goal>
110+
</goals>
111+
</execution>
112+
</executions>
113+
</plugin>
114+
115+
</plugins>
116+
80117
</build>
81118
</project>

openhtmltopdf-svg-support/pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,43 @@
6868
</includes>
6969
</resource>
7070
</resources>
71+
72+
<plugins>
73+
74+
<plugin>
75+
<groupId>org.apache.maven.plugins</groupId>
76+
<artifactId>maven-jar-plugin</artifactId>
77+
<version>${open.jar.plugin.version}</version>
78+
<configuration>
79+
<archive>
80+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
81+
</archive>
82+
</configuration>
83+
</plugin>
84+
85+
<plugin>
86+
<groupId>org.apache.felix</groupId>
87+
<artifactId>maven-bundle-plugin</artifactId>
88+
<version>${open.bundle.plugin.version}</version>
89+
<configuration>
90+
<instructions>
91+
<Export-Package>*</Export-Package>
92+
</instructions>
93+
</configuration>
94+
95+
<executions>
96+
<execution>
97+
<id>bundle-manifest</id>
98+
<phase>process-classes</phase>
99+
<goals>
100+
<goal>manifest</goal>
101+
</goals>
102+
</execution>
103+
</executions>
104+
</plugin>
105+
106+
</plugins>
107+
108+
71109
</build>
72110
</project>

0 commit comments

Comments
 (0)