When I try to run Liquibase on the command line passing a property using
the -D switch I always get an error:
liquibase
-Dtable_owner=foo --defaultsFile=connection.properties
–changeLogFile=changelog.xml update
results in the error:
(Needless to say that --Dtable_owner=foo doesn't work either)Errors:
Unexpected value -Dtable_owner=foo: parameters must start with a '--'
Usage: java -jar liquibase.jar [options] [command]
When I try the -D at the end of the line (as shown here)
I get the error:
Unexpected error running Liquibase: Unknown parameter: 'table_owner'
SEVERE 11/3/15 10:41 AM: liquibase: Unknown parameter: 'table_owner'
liquibase.exception.CommandLineParsingException: Unknown parameter: 'table_owner'
at liquibase.integration.commandline.Main.parsePropertiesFile(Main.java:453)
at liquibase.integration.commandline.Main.run(Main.java:159)
at liquibase.integration.commandline.Main.main(Main.java:99)
What am I missing?
I am using Liquibase 3.4.1
How do I pass a parameter (that is used with
"${table_owner}" in the changeLog) on the command line?