Hello Steinar! I'm using liquibase in karaf for some time, and to fix that
you need to repackage the liquibase-slf4j for it to be a fragment of the
liquibase bundle. Here's how: 

https://gist.github.com/YgorCastor/44fb3a13520d28aa328c4975f8bf5e8c

and in your feature:

<feature name="liquibase" description="OSGiFied Liquibase" start-level="40"
version="3.5.1">
   <bundle>mvn:org.liquibase/liquibase-core/3.5.1</bundle>
   <bundle>mvn:org.yaml/snakeyaml/1.17</bundle>
   <bundle
start-level="35">mvn:com.mattbertolini/liquibase-slf4j-osgi/2.0.0</bundle>
</feature>

You can also do the same thing using the wrap protocol, without the need to
repackage liquibase-slf4j, but i remember i had some problems with that, i
don't recall what happened. 



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Experiences-with-karaf-and-liquibase-tp4050470p4050471.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to