This project expose an issue with the loadData
change type, with the relativeToChangelogFile=true
attribute, when Liquibase is executed with a "java -cp" command.
- liquibase 4.12.0
./run1.sh <command>
call the${LIQUIBASE_HOME}/liquibase
script and assume thatLIQUIBASE_HOME=/opt/liquibase-4.12.0
./run2.sh <command>
is based onliquibase.integration.commandline.Main
("java -cp" command)./run3.sh <command>
is based onliquibase.integration.commandline.LiquibaseLauncher
("java -jar" command, same as${LIQUIBASE_HOME}/liquibase
script)
- Execute
./run1.sh status
results : Liquibase command 'status' was executed successfully. - Execute
./run2.sh status
results : Liquibase command 'status' was executed successfully. - Execute
./run3.sh status
results : Liquibase command 'status' was executed successfully.
- Execute
./run1.sh validate
results :- No validation errors found.
- Liquibase command 'validate' was executed successfully.
- Execute
./run2.sh validate
results :- liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: File 'data/persons.csv' not found
- Execute
./run3.sh validate
results :- No validation errors found.
- Liquibase command 'validate' was executed successfully.
- Add root project folder in classpath for
run2.sh