Skip to content

Set service_mode=generic in blueprint archetype - #3137

Merged
jbonofre merged 1 commit into
apache:mainfrom
jbonofre:blueprint-archetype-service-mode
Nov 20, 2026
Merged

jbonofre merged 1 commit into
apache:mainfrom
jbonofre:blueprint-archetype-service-mode

Conversation

@jbonofre

Copy link
Copy Markdown
Member

Follow-up to #3098.

archetypes/blueprint/src/main/resources/archetype-resources/pom.xml resolves maven-bundle-plugin to 6.2.0 (bnd 7.4.0) via ^felix.maven-bundle-plugin.version^, without inheriting the root pom.xml instructions.

Adding <service_mode>generic</service_mode> aligns the generated blueprint archetype projects with the root build and avoids the bnd >= 7.2 unquoted Import-Service filter truncation if users add service filters or Blueprint namespace handlers (such as cm:).

Verified locally with mvn -B -pl archetypes/blueprint clean verify -Prat (archetype integration test generates Provide-Capability: osgi.service;...).

Follow-up to apache#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>
@github-actions

Copy link
Copy Markdown

Test Results

1 112 files  ±0  1 112 suites  ±0   1h 21m 33s ⏱️ - 6m 4s
1 361 tests ±0  1 229 ✅ +1  132 💤 ±0  0 ❌  - 1 
5 444 runs  ±0  4 914 ✅ +1  530 💤 ±0  0 ❌  - 1 

Results for commit 792e304. ± Comparison against base commit fc828f9.

@jbonofre
jbonofre merged commit 0d48ef9 into apache:main Nov 20, 2026
9 checks passed
@jbonofre
jbonofre deleted the blueprint-archetype-service-mode branch November 20, 2026 15:27
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