I've created a liquibase.properties like this:
- classpath=./postgresql-42.1.4.jar:./snakeyaml-1.18.2.jar
- changeLogFile=./src/main/resources/db/changelog/db.changelog-master.yaml
- username=postgres
- password=mysecret
- url=jdbc:postgresql://localhost:5432/mydatabase
- driver=org.postgresql.Driver
And try to perform a simple update:
- liquibase update
And I get the error:
- Unexpected error running Liquibase: org.yaml.snakeyaml.Yaml
As can be seen in the file i've added two files to the current folder I'm executing it:
- postgresql-42.1.4.jar
- snakeyaml-1.18.2.jar
- snakeyaml-1.18.2.jar
and finally this is the yaml file for the updates:
- databaseChangeLog:
- - includeAll:
- path: db/changelog/changes/
NOTE: I've added this into a spring boot app and when the app runs this gets updated without any hassle.
SECOND NOTE: I've had to add the file postgresql-42.1.4.jar, because otherwise it kept giving me the error:
- Connection could not be created to postgresql://localhost:5432/mydatabase with driver org.postgresql.Driver. Possibly the wrong driver for the given database URL
So, it's very frustrating, since this should be the simplest way to use liquibase.
Any help ?