G
YouTube TikTok Games
Skip to content

Upgrade maven-bundle-plugin to 6.2.0 - #3098

Open
holgerfriedrich wants to merge 1 commit into
apache:mainfrom
holgerfriedrich:pr-maven-bundle-plugin
Open

holgerfriedrich wants to merge 1 commit into
apache:mainfrom
holgerfriedrich:pr-maven-bundle-plugin

Conversation

@holgerfriedrich

@holgerfriedrich holgerfriedrich commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Upgrade maven-bundle-plugin 6.0.2 -> 6.2.0 (bnd 7.0.0 -> 7.4.0). This replaces the closed dependabot PRs #2786, #2874 and #2924.

bnd >= 7.2 truncates the blueprint Import-Service filters, because the Felix BlueprintPlugin writes them unquoted. That broke ConfigExampleTest.testBlueprint. Switching to service_mode=generic avoids the problem.

This changes the generated manifests: blueprint bundles now declare Require-Capability: osgi.service;effective:=active;filter:="..." instead of Import-Service. Tools that read the legacy header directly may no longer work. Karafs seems to handle the change properly.

Example, karaf-config-example-blueprint:

# before
Import-Service: org.apache.aries.blueprint.NamespaceHandler;filter=(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0)

# after
Require-Capability: osgi.service;effective:=active;filter:="(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0))"

The newer bnd also knows Java 25 bytecode (bnd 7.0.0 wrote osgi.ee=UNKNOWN for it).
This is one of the blockers that shows when I switch javaVersion to 25 in pom.xml.

bnd >= 7.2 truncates the unquoted Import-Service filters written by the
Felix BlueprintPlugin (see apache#2786). Use service_mode=generic, which emits
a properly quoted osgi.service Require-Capability instead.

The newer bnd (7.4.0) also knows JavaSE-25, needed for Java 25 bytecode.
@github-actions

Copy link
Copy Markdown

Test Results

  744 files  ±0    744 suites  ±0   56m 46s ⏱️ +49s
1 108 tests ±0    974 ✅ ±0  134 💤 ±0  0 ❌ ±0 
3 324 runs  ±0  2 921 ✅ ±0  403 💤 ±0  0 ❌ ±0 

Results for commit 6e6b6b1. ± Comparison against base commit 3f17477.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant