I run liquibase both via Spring context and via the liquibase maven plugin.
When I ran via Spring context, I refer to the changelog files as:
If I want to run the same via plugin, I have to edit paths manually:
I’d like to offer 2 options.
- Add a possibility to understand the “classpath” name in the path and allow classpath setting in the plugin itself. At the moment my plugin config looks like:
- org.liquibase
- liquibase-maven-plugin
- 2.0.5
- src/main/resources/db/config/liquibase-gensql-data-access.properties
- src/main/resources/db/changelog/db.changelog-master.xml
- src/main/resources/db/gen/migrate.sql
- info
- false
- true
Or, as an alternative opiton, add all maven src folders to the classpath. For example <span