karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Castor <ygorcas...@gmail.com>
Subject Re: Experiences with karaf and liquibase?
Date Fri, 26 May 2017 18:26:00 GMT
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.

Mime
View raw message