Skip to content

Commit 2393568

Browse files
iils-hwellmanngnodet
authored andcommitted
[MRESOLVER-570] Remove excessive strictness of OSGi dependency metadata
- Mark optional Maven dependencies as optional in OSGi metadata
1 parent 52ca14e commit 2393568

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,10 @@
611611
Automatic-Module-Name: ${Bundle-SymbolicName}
612612
# Export packages not containing the substring 'internal'
613613
-exportcontents: ${removeall;${packages};${packages;NAMED;*internal*}}
614+
# Mark optional Maven dependencies as optional
615+
Import-Package: \
616+
javax.inject*;resolution:=optional, \
617+
*
614618
# Reproducible build
615619
-noextraheaders: true
616620
${bnd.instructions.additions}

0 commit comments

Comments
 (0)