Skip to content

Commit abc937f

Browse files
committed
Add OSGI metadata to build artifacts
Closes #2
1 parent a646c99 commit abc937f

File tree

8 files changed

+135
-0
lines changed

8 files changed

+135
-0
lines changed

base/bnd.bnd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Export-Package: \
2+
org.tigris.subversion.svnclientadapter,\
3+
org.tigris.subversion.svnclientadapter.utils
4+
Bundle-Name: svnclientadapter.base
5+
Bundle-SymbolicName: svnclientadapter.base
6+
Bundle-Description: SVNClientAdapter Base Interfaces

base/pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,35 @@
3030
<target>1.6</target>
3131
</configuration>
3232
</plugin>
33+
<plugin>
34+
<groupId>biz.aQute.bnd</groupId>
35+
<artifactId>bnd-maven-plugin</artifactId>
36+
<version>2.4.1</version>
37+
38+
<executions>
39+
<execution>
40+
<goals>
41+
<goal>bnd-process</goal>
42+
</goals>
43+
</execution>
44+
</executions>
45+
</plugin>
46+
47+
<!--
48+
The following configuration is required because bnd-maven-plugin generates the manifest to
49+
target/classes/META-INF/MANIFEST.MF but the normal maven-jar-plugin does not use it. If the jar-plugin
50+
is patched to pick up the manifest from this location, then the following config is not needed.
51+
-->
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-jar-plugin</artifactId>
55+
<configuration>
56+
<archive>
57+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
58+
</archive>
59+
</configuration>
60+
</plugin>
61+
3362
</plugins>
3463
</build>
3564

cmdline/bnd.bnd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Export-Package: \
2+
org.tigris.subversion.svnclientadapter.commandline,\
3+
org.tigris.subversion.svnclientadapter.commandline.parser
4+
Bundle-Name: svnclientadapter.cli
5+
Bundle-SymbolicName: svnclientadapter.cli
6+
Bundle-Description: SVNClientAdapter Command Line Adapter

cmdline/pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,34 @@
3838
<target>1.6</target>
3939
</configuration>
4040
</plugin>
41+
<plugin>
42+
<groupId>biz.aQute.bnd</groupId>
43+
<artifactId>bnd-maven-plugin</artifactId>
44+
<version>2.4.1</version>
45+
46+
<executions>
47+
<execution>
48+
<goals>
49+
<goal>bnd-process</goal>
50+
</goals>
51+
</execution>
52+
</executions>
53+
</plugin>
54+
55+
<!--
56+
The following configuration is required because bnd-maven-plugin generates the manifest to
57+
target/classes/META-INF/MANIFEST.MF but the normal maven-jar-plugin does not use it. If the jar-plugin
58+
is patched to pick up the manifest from this location, then the following config is not needed.
59+
-->
60+
<plugin>
61+
<groupId>org.apache.maven.plugins</groupId>
62+
<artifactId>maven-jar-plugin</artifactId>
63+
<configuration>
64+
<archive>
65+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
66+
</archive>
67+
</configuration>
68+
</plugin>
4169
</plugins>
4270
</build>
4371

javahl/bnd.bnd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Export-Package: org.tigris.subversion.svnclientadapter.javahl
2+
Bundle-Name: svnclientadapter.javahl
3+
Bundle-SymbolicName: svnclientadapter.javahl
4+
Bundle-Description: SVNClientAdapter JavaHL Adapter

javahl/pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,35 @@
5151
<target>1.6</target>
5252
</configuration>
5353
</plugin>
54+
<plugin>
55+
<groupId>biz.aQute.bnd</groupId>
56+
<artifactId>bnd-maven-plugin</artifactId>
57+
<version>2.4.1</version>
58+
59+
<executions>
60+
<execution>
61+
<goals>
62+
<goal>bnd-process</goal>
63+
</goals>
64+
</execution>
65+
</executions>
66+
</plugin>
67+
68+
<!--
69+
The following configuration is required because bnd-maven-plugin generates the manifest to
70+
target/classes/META-INF/MANIFEST.MF but the normal maven-jar-plugin does not use it. If the jar-plugin
71+
is patched to pick up the manifest from this location, then the following config is not needed.
72+
-->
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-jar-plugin</artifactId>
76+
<configuration>
77+
<archive>
78+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
79+
</archive>
80+
</configuration>
81+
</plugin>
82+
5483
</plugins>
5584
</build>
5685

svnkit/bnd.bnd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Export-Package: org.tigris.subversion.svnclientadapter.svnkit
2+
Bundle-Name: svnclientadapter.svnkit
3+
Bundle-SymbolicName: svnclientadapter.svnkit
4+
Bundle-Description: SVNClientAdapter SVNKit Adapter

svnkit/pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,35 @@
5353
<target>1.6</target>
5454
</configuration>
5555
</plugin>
56+
<plugin>
57+
<groupId>biz.aQute.bnd</groupId>
58+
<artifactId>bnd-maven-plugin</artifactId>
59+
<version>2.4.1</version>
60+
61+
<executions>
62+
<execution>
63+
<goals>
64+
<goal>bnd-process</goal>
65+
</goals>
66+
</execution>
67+
</executions>
68+
</plugin>
69+
70+
<!--
71+
The following configuration is required because bnd-maven-plugin generates the manifest to
72+
target/classes/META-INF/MANIFEST.MF but the normal maven-jar-plugin does not use it. If the jar-plugin
73+
is patched to pick up the manifest from this location, then the following config is not needed.
74+
-->
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-jar-plugin</artifactId>
78+
<configuration>
79+
<archive>
80+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
81+
</archive>
82+
</configuration>
83+
</plugin>
84+
5685
</plugins>
5786
</build>
5887

0 commit comments

Comments
 (0)