简体   繁体   中英

Liquibase Missing Environment Vars

I'm going through the following demo for setting up liquibase versioning with big query: https://medium.com/google-cloud/version-control-of-bigquery-schema-changes-with-liquibase-ddc7092d6d1d but I'm getting an error when running the following command:

java -jar liquibase-core-4.6.2.jar --changeLogFile=create_table.sql update

Error:

Exception in thread "main" java.lang.IllegalArgumentException: Unable to find LIQUIBASE_HOME environment variable
        at liquibase.integration.commandline.LiquibaseLauncher.main(LiquibaseLauncher.java:36)

I understand I need to set an environment variable most likely, but I'm worried that I'm missing something because the demo/tutorial didn't mention any environment variables, and I can't find any setup instructions for liquibase envvars online either.

Does anyone know what I might be missing?

The best would be to have a look at the examples in their Github Repo providing cmd scripts to run it in Windows / Linux. Basically setting the LIQUIBASE_HOME should be sophisticated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM