Skip to content

Commit eaadd37

Browse files
committed
Add OSGi support. Fixes failsafe-lib#40.
1 parent 62ed9f6 commit eaadd37

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

pom.xml

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
<modelVersion>4.0.0</modelVersion>
35

46
<parent>
@@ -59,7 +61,7 @@
5961
<version>0.4.2</version>
6062
<scope>test</scope>
6163
</dependency>
62-
64+
6365
<!-- Examples dependencies -->
6466
<dependency>
6567
<groupId>io.reactivex</groupId>
@@ -99,6 +101,43 @@
99101
<arguments>-Prelease</arguments>
100102
</configuration>
101103
</plugin>
104+
<plugin>
105+
<artifactId>maven-jar-plugin</artifactId>
106+
<configuration>
107+
<archive>
108+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
109+
</archive>
110+
</configuration>
111+
</plugin>
112+
<plugin>
113+
<groupId>org.apache.felix</groupId>
114+
<artifactId>maven-bundle-plugin</artifactId>
115+
<version>3.0.1</version>
116+
<extensions>true</extensions>
117+
<executions>
118+
<execution>
119+
<id>bundle-manifest</id>
120+
<phase>process-classes</phase>
121+
<goals>
122+
<goal>manifest</goal>
123+
</goals>
124+
</execution>
125+
</executions>
126+
<configuration>
127+
<supportedProjectTypes>
128+
<supportedProjectType>jar</supportedProjectType>
129+
<supportedProjectType>bundle</supportedProjectType>
130+
</supportedProjectTypes>
131+
<instructions>
132+
<Implementation-Title>${project.description}</Implementation-Title>
133+
<Implementation-Version>${project.version}</Implementation-Version>
134+
<Bundle-Name>Failsafe</Bundle-Name>
135+
<Bundle-SymbolicName>net.jodah.failsafe</Bundle-SymbolicName>
136+
<Export-Package>net.jodah.failsafe*;version=1.0</Export-Package>
137+
<Import-Package>*</Import-Package>
138+
</instructions>
139+
</configuration>
140+
</plugin>
102141
<plugin>
103142
<groupId>org.apache.maven.plugins</groupId>
104143
<artifactId>maven-javadoc-plugin</artifactId>

0 commit comments

Comments
 (0)