Decerto Maven Plugin
This repository contains a set of useful Maven plugins.
- Decerto Liquibase Maven Plugin - This plugin is made for enhancing Liquibase projects automation
Decerto Liquibase Maven Plugin
This plugin provides following goals:
- moveSnapshots (phase none) - enables moving temporary changes from (in default) /resources/liquibase/snapshot directory of the project. Useful during releasing a new version - it creates new folder in /resources/liquibase/ with a project's current version name. After succesful file processing, it creates proper git commit, which is provided for releasing automation through CI like Jenkins.
Configuration properties:
- liquibaseDir (default value -> /src/main/resources/liquibase/)
- liquibaseSnapshotDir (default value -> /src/main/resources/liquibase/snapshot/)
- projectVersion (default value -> project version from maven properties)
- projectBaseDir (default value -> project base dir from maven properties)
- artifactName (default value -> finalName from maven properties)
- lineSeparator
- changelogFiles (list of changelog file names located in /resources/liquibase/ - each files is extented by new snapshots folder inclusion)
Usage:
<plugins>
<plugin>
<artifactId>decerto-liquibase-maven-plugin</artifactId>
<groupId>pl.decerto</groupId>
<version>1.4.6</version>
<configuration>
<changelogFiles>
<changelogFile>changelog-master.xml</changelogFile>
<changelogFile>changelog-test.xml</changelogFile>
</changelogFiles>
</configuration>
<executions>
<execution>
<goals>
<goal>moveSnapshots</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>