Skip to content

Commit 477747c

Browse files
committed
add instructions for osgi mediator
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
1 parent 4f2ab0e commit 477747c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

api/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,16 @@ Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">
228228
<Specification-Vendor>${vendor.name}</Specification-Vendor>
229229
<Implementation-Build-Id>${buildNumber}</Implementation-Build-Id>
230230
<_noextraheaders>true</_noextraheaders>
231+
<!-- optional to allow usage with hk2 resource locator as a fallback -->
232+
<Require-Capability><![CDATA[
233+
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)
234+
(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
235+
osgi.serviceloader;
236+
filter:="(osgi.serviceloader=jakarta.xml.bind.JAXBContextFactory)";
237+
osgi.serviceloader="jakarta.xml.bind.JAXBContextFactory";
238+
cardinality:=multiple;resolution:=optional
239+
]]>
240+
</Require-Capability>
231241
</instructions>
232242
</configuration>
233243
</execution>

0 commit comments

Comments
 (0)