This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/main by this push:
new 53ece91f17 [KARAF-2195] Fix assembly resolution failure when feature
requires wrap protocol (#2551)
53ece91f17 is described below
commit 53ece91f1791fac353f06fb6f41eec7a30d2364a
Author: JB Onofré <[email protected]>
AuthorDate: Mon Apr 20 15:05:19 2026 +0200
[KARAF-2195] Fix assembly resolution failure when feature requires wrap
protocol (#2551)
The pax-url-wrap feature's bundle (org.ops4j.pax.url.wrap uber jar) has a
mandatory Import-Package on org.osgi.service.log, but this package is not
satisfiable during assembly prerequisite resolution because pax-logging-api
(which provides it) is only in the framework feature and not part of the
prerequisite deployment context.
Add pax-logging-api as a dependency bundle in the pax-url-wrap feature so
the resolver can satisfy the org.osgi.service.log requirement when
pax-url-wrap is resolved as a prerequisite without the framework feature.
---
assemblies/features/standard/pom.xml | 5 +++++
assemblies/features/standard/src/main/feature/feature.xml | 1 +
2 files changed, 6 insertions(+)
diff --git a/assemblies/features/standard/pom.xml
b/assemblies/features/standard/pom.xml
index 6e45ac866f..968b865465 100644
--- a/assemblies/features/standard/pom.xml
+++ b/assemblies/features/standard/pom.xml
@@ -152,6 +152,11 @@
<classifier>uber</classifier>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.ops4j.pax.logging</groupId>
+ <artifactId>pax-logging-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
<!-- config deps -->
<dependency>
diff --git a/assemblies/features/standard/src/main/feature/feature.xml
b/assemblies/features/standard/src/main/feature/feature.xml
index 3f233fb932..5f71b19b24 100644
--- a/assemblies/features/standard/src/main/feature/feature.xml
+++ b/assemblies/features/standard/src/main/feature/feature.xml
@@ -1488,6 +1488,7 @@ org.apache.felix.eventadmin.AddSubject=true
</feature>
<feature name="pax-url-wrap" description="Wrap URL handler"
version="${pax.url.version}">
+ <bundle
dependency="true">mvn:org.ops4j.pax.logging/pax-logging-api/${pax.logging.version}</bundle>
<bundle
start-level="10">mvn:org.ops4j.pax.url/pax-url-wrap/${pax.url.version}/jar/uber</bundle>
</feature>