Liquibase File Converter Maven Plugin
This maven plugin allows to convert Liquibase change set files between XML, YAML and JSON formats.
Usage
- Include the artifact in the plugins section of your POM.xml
- Execute the goal
mvn liquibase-file-converter:convert -DsourceFormat=foo -DtargetFormat=bar
- Allowed format values are json, xml and yaml.
- Default source format is XML and default target format is YAML.
Notes
- Source files are expected to be in src/main/resources/source directory
- Generated files can be found in the target/ directory
These settings may be overridden by using the -DsourceDir
and -DtargetDir
parameters.
For example, we can read from a directory called inputDir and write to a directory called outputDir
mvn liquibase-file-converter:convert -DsourceDir=inputDir -DtargetDir=outputDir