-
Feature Request
-
Resolution: Done
-
Major
-
None
-
1.1.10.Final
-
None
By only exporting the slf4j api, the weld-osgi-core-mandatory bundle can not be correctly integrated into an existing slf4j setup, such as the one provided by Karaf.
The following patch solves the problem.
diff --git a/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd b/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd
index 44b74ca..4e81452 100644
--- a/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd
+++ b/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd
@@ -1,5 +1,6 @@
Import-Package org.osgi.framework, \
- javax.inject,
+ javax.inject, \
+ org.slf4j.*;version="[1.6,2)";resolution:=optional,
Export-Package javax.el;version=2.2.0, \
javax.decorator; \