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.

@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.

@YannLeCorse

Copy link
Copy Markdown
Contributor

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

Hi, sorry for delay. Will try to have a look on Monday. Cheers.

@mbien mbien added the Maven [ci] enable "build tools" tests label Jun 21, 2026
@mbien

mbien commented Jun 21, 2026

Copy link
Copy Markdown
Member

maven.osgi is tested in the build-tools job, so I added the Maven label. Next sync would run that too.

…` 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

Copy link
Copy Markdown
Contributor Author

Unless there are objections I intent to merge this some time next week.

@mbien mbien left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes and cleanup look good to me.

I haven't tested but we can keep an eye on it once its in.

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) Maven [ci] enable "build tools" tests Platform [ci] enable platform tests (platform/*)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants