Liquibase jar dependency issue in 3.6.0 onwards

I noticed that Liquibase has additional dependencies of 3 jars ( https://mvnrepository.com/artifact/org.liquibase/liquibase-core/3.8.9). So in my projects pom.xml i added these jars as dependency. After the build i can see these new jars as part of the project lib folder. But liquibase still doesn’t work.

I tried the command line to test the same but it fails there too.

java -cp ‘jaxb-api-2.3.0.jar:logback-core-1.2.3.jar:logback-classic-1.2.3.jar:slf4j-api-1.7.30.jar’ -jar liquibase-core-3.8.9.jar --driver=org.postgresql.Driver --classpath=postgresql-42.2.12.jar --url=“jdbc:postgresql://10.xxx.xxx.92:5432/xxx” --changeLogFile=changelog-test.xml --username=horizon --password=OrESQCfJI3RgsVpxmD0DdjdF4ibSGuaJ update

It fails with same error as before adding these dependency jars
Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.NoClassDefFoundError: ch/qos/logback/core/Context

With liquibase 3.5.3 and Liquibase 4.0 beta jar the same command line works fine ( without the -cp )
Do you know whats the problem here.

We have hit a dead end with this. Please help.

Hi @shubh,

Could you tell me a little bit more about what you are doing? I don’t know how your maven project is setup (maybe send pom file over?) so I don’t know when or how this is being ran:

`

java -cp ‘jaxb-api-2.3.0.jar:logback-core-1.2.3.jar:logback-classic-1.2.3.jar:slf4j-api-1.7.30.jar’ -jar liquibase-core-3.8.9.jar --driver=org.postgresql.Driver --classpath=postgresql-42.2.12.jar --url=“jdbc:postgresql://10.xxx.xxx.92:5432/xxx” --changeLogFile=changelog-test.xml --username=horizon --password=OrESQCfJI3RgsVpxmD0DdjdF4ibSGuaJ update

`

Thanks! -Ronak