I have several databases and would like to update them in one command.
dev.properties contains connection parameters:
I don’t know why, but here we can’t write path to changelog file, so we write it in pom.xml
Maven config looks like that:
Liquibase very weird product, xml config, many problems with relative path and so on. In databasechangelog table there is filename field, this field contains not filename, it contains relative path to changelog. And if you move this file to another folder without any changes, liquibase will try to apply it, just because your changelog in another folder. To avoid it use logicalFilePath="<file name>" parameter in <changeSet> tag.
I recommend to use flyway migration system. Liquibase have only one feature - supporting multiple database engines.