• Task
  • Version ยท 4.33
  • Get started

Install Liquibase with Maven

Last updated: August 11, 2026

Before you begin

Procedure

1

Create a Liquibase Maven project directory to store all Liquibase files.

2

In your Liquibase Maven project directory, create a pom.xml file.

3

Add your plugin to the pom.xml file.

Example Code
loading
4

Add Configurations.

Example Code
loading
5

Create a changelog file in the src/main/resources directory with the name of your_changelog_file, such as changelog.sql.

6

Add changesets to your changelog file.

loading

loading

loading

loading
7

Run the update-sql goal to inspect the SQL before applying changes to your database

mvn liquibase:updateSQL
8

Deploy your changes by using the update goal.

mvn liquibase:update
4c497d057f0f622a3abc67fdc533d5c32716148c