Repository navigation
Upgrade maven-bundle-plugin to 6.2.0 - #3098
Merged
Merged
Conversation
Contributor
Author
|
PR to felix-dev regarding the truncated filters is , So maybe we can remove |
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.
holgerfriedrich
force-pushed
the
pr-maven-bundle-plugin
branch
from
November 19, 2026 16:41
6e6b6b1 to
700d2d9
Compare
jbonofre
approved these changes
Nov 20, 2026
jbonofre
left a comment
Member
There was a problem hiding this comment.
LGTM, thanks @holgerfriedrich!
Upgrading maven-bundle-plugin to 6.2.0 (bnd 7.4.0) unblocks JavaSE-25 support, and <service_mode>generic</service_mode> cleanly works around the unquoted Import-Service filter truncation in BlueprintPlugin while emitting standard osgi.service caps/reqs.
jbonofre
added a commit
that referenced
this pull request
Nov 20, 2026
Follow-up to #3098. The blueprint archetype resolves maven-bundle-plugin to 6.2.0 (bnd 7.4.0) without inheriting the root pom.xml instructions. Adding <service_mode>generic</service_mode> avoids unquoted Import-Service filter truncation by bnd >= 7.2 when generated projects use service filters or namespace handlers. Signed-off-by: JB Onofré <jbonofre@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-Servicefilters, because the Felix BlueprintPlugin writes them unquoted. That brokeConfigExampleTest.testBlueprint. Switching toservice_mode=genericavoids the problem.This changes the generated manifests: blueprint bundles now declare
Require-Capability: osgi.service;effective:=active;filter:="..."instead ofImport-Service. Tools that read the legacy header directly may no longer work. Karafs seems to handle the change properly.Example,
karaf-config-example-blueprint:The newer bnd also knows Java 25 bytecode (bnd 7.0.0 wrote
osgi.ee=UNKNOWNfor it).This is one of the blockers that shows when I switch javaVersion to 25 in pom.xml.