Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

HELP- can't run liquibase in command-line

$
0
0
I've created a liquibase.properties like this:
  1. classpath=./postgresql-42.1.4.jar:./snakeyaml-1.18.2.jar
  2. changeLogFile=./src/main/resources/db/changelog/db.changelog-master.yaml
  3. username=postgres
  4. password=mysecret
  5. url=jdbc:postgresql://localhost:5432/mydatabase 
  6. driver=org.postgresql.Driver

And try to perform a simple update:

  1. liquibase update
And I get the error:
  1. 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

and finally this is the yaml file for the updates:
  1. databaseChangeLog:
  2.     - includeAll:
  3.         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:
  1. 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 ? 





Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>