Skip to content

Remove Netbinox dependency from MavenOSGI and support Export-Package with multi-package entries#9426

Open
matthiasblaesing wants to merge 2 commits into
apache:masterfrom
matthiasblaesing:reduce-equinox
Open

Remove Netbinox dependency from MavenOSGI and support Export-Package with multi-package entries#9426
matthiasblaesing wants to merge 2 commits into
apache:masterfrom
matthiasblaesing:reduce-equinox

Conversation

@matthiasblaesing
Copy link
Copy Markdown
Contributor

The OSGI specification allows `Export-Package" to contain multiple
export entries, that in turn can each hold multiple package names.

These two should be considered equal:

Export-Package: com.acme.foo;com.acme.bar;version=1.23

and

Export-Package: com.acme.foo;version=1.23,com.acme.bar;version=1.23

The "NetBeans OSGi Integration" only supported the second version. This
adds the first.

The implementation of the Export-Package parser in "Netbeans OSGi
Integration" can be reused in the "Maven OSGi" so that the Netbinox
dependency can be removed from that module.

…` with multi-package entries

The OSGI specification allows `Export-Package" to contain multiple
export entries, that in turn can each hold multiple package names.

These two should be considered equal:

    Export-Package: com.acme.foo;com.acme.bar;version=1.23

and

    Export-Package: com.acme.foo;version=1.23,com.acme.bar;version=1.23

The "NetBeans OSGi Integration" only supported the second version. This
adds the first.

The implementation of the Export-Package parser in "Netbeans OSGi
Integration" can be reused in the "Maven OSGi" so that the Netbinox
dependency can be removed from that module.
@matthiasblaesing matthiasblaesing added this to the NB31 milestone Jun 3, 2026
@matthiasblaesing matthiasblaesing added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) Platform [ci] enable platform tests (platform/*) labels Jun 3, 2026
@matthiasblaesing
Copy link
Copy Markdown
Contributor Author

@YannLeCorse would you mind having a look? This is a followup to #9310, covering another formatting option of "Export-Package" declaration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) Platform [ci] enable platform tests (platform/*)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant