What is Zonky Maven Plugin?

This plugin helps you to start an embedded PostgreSQL database with the help of the Zonky Embedded Postgres project. This plugin is intended to help you running your database migration scripts (e.g. Liquibase or Flyway) or other database related tasks during build time against a production near database.

Compatibility

Compatible with JDK 8+ and Maven >= 3.9.5.

Current features

  • Start and stop an embedded Postgres database during any maven lifecycle phase
  • Create your database schema when the embedded database starts up
  • Use a fixed or a random port for the embedded database (the random port will be written into a Maven variable `zonky.port` besides others)
  • Customize the work and data directory of the embedded database