Hi Steinar, As far as I can tell, there is a spifly-issue, which is why Liquibase cannot create the correct Log Services. I tried
<feature name="liquibase-core" start-level="20" version="${liquibase.version}"> <feature>aries-proxy</feature> <bundle>mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.3.4</bundle> <bundle>mvn:org.yaml/snakeyaml/${snakeyaml.version}</bundle> <bundle>mvn:org.liquibase/liquibase-core/${liquibase.version}</bundle> </feature> which leads to new exceptions. The one from Liquibase Pro can be ignored for now, I guess, and the other one might be related to your ResourceAccessor, Good luck, I hope this helps you a little. Kind regards, Steven On Sun, Aug 7, 2022 at 6:02 PM Steinar Bang <s...@dod.no> wrote: > >>>>> Steven Huypens <steven.huyp...@gmail.com>: > > > Hi Steinar, > > I tried the liquibase-karaf-feature/use-liquibase-slf4j-410 branch. After > > changing the liquibase version to 4.9.1 in the pom.xml, the build is > > successful. > > Yes, but if you take a look at > > > liquibase-karaf-feature/liquibase-integration-test/karaf.liquibase.tests/target/exam/<somehash>/log/karaf.log > you will see a stacktrace in the log, caused by "Cannot find default log > service" and no liquibase logging from setting up the schema and > populating it with data. > https://gist.github.com/steinarb/2857d60427d42686299b1d9a388ee420 > > But if you switch to the master branch and change liquibase.version in > .m2/settings.xml back to 3.8.0 and re-run "mvn clean install" you will > find a > > > liquibase-karaf-feature/liquibase-integration-test/karaf.liquibase.tests/target/exam/<somehash>/log/karaf.log > that doesn't have the "Cannot find default log service" error, and > contains the log output from liquibase > https://gist.github.com/steinarb/d5902ae12bdcc1f96bd66eaf45f9311b > > This is the behaviour that has eluded me in all liquibase versions since > 3.8.0(*), and the reason I haven't updated the liquibase version of the > feature. > > But I've not given up yet! :-) > > (*) in 3.x versions >3.8.0 because of various OSGi and JDK 8 vs 11 > related problems, and in 4.x because the log system has changed and > I haven't been able to make the liquibase logging work right with > karaf > >