Skip to content

Commit

Permalink
Fix enabling logging in an OSGi environment
Browse files Browse the repository at this point in the history
Currently, within an OSGi environment (such as apache karaf e.g.), when logging is requested through configuration, enabling it will fail inside LoggerFactory with "Logging cannot be activated, missing slf4j dependency" always.
This is due to the fact that the OSGi Metadata you already generate is incorrect/missing something.
This commit fixes this "Import-Package" statement by adding the org.slf4j package as an optional import package.
  • Loading branch information
tonit committed Nov 28, 2017
1 parent 26918b7 commit d2fcff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -266,7 +266,7 @@
<Bundle-SymbolicName>org.mariadb.jdbc</Bundle-SymbolicName>
<Export-Package>org.mariadb.jdbc</Export-Package>
<Import-Package>
javax.net;resolution:=optional,javax.net.ssl;resolution:=optional,javax.sql;resolution:=optional,javax.transaction.xa;resolution:=optional
javax.net;resolution:=optional,javax.net.ssl;resolution:=optional,javax.sql;resolution:=optional,javax.transaction.xa;resolution:=optional,org.slf4j;resolution:=optional
</Import-Package>
</manifestEntries>
</archive>
Expand Down

0 comments on commit d2fcff8

Please sign in to comment.