Upgrade from Liquibase Community to Liquibase Secure with Maven
Last updated: October 21, 2025
This article walks you through the steps of upgrading from Liquibase Open Source (Community) to Liquibase Secure using Maven. Maven is a build automation tool commonly used for managing Java-based projects and dependencies.
In this guide, you’ll update your project’s pom.xml file to use the Liquibase Secure Maven plugin and ensure that Liquibase Secure functionality is available on your classpath.
Key Changes in Liquibase 5.0.1
GroupId change:
org.liquibase→com.liquibaseSimplified dependencies:
liquibase-coreis now included inliquibase-commercialConsistent artifact naming across plugins and dependencies
Before you begin
A working Maven project that already uses Liquibase Community.
Procedure
Identify Your Liquibase Usage
Your upgrade path depends on how your project uses Liquibase:
Maven Plugin Users: You run Liquibase commands via Maven goals (e.g., mvn liquibase:update)
Dependency Users: You use Liquibase as a library in your application code
Both: Some projects use both approaches
For Maven plugin users
If you use the Liquibase Maven plugin to run database migrations, update your pom.xml plugin configuration.
Key changes to make:
Change your GroupId: org.liquibase → com.liquibase
Change your version: Update to 5.0.0 or later
Example code
<plugin>
<groupId>com.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>5.0.0</version>
<configuration>
<!-- your configuration -->
</configuration>
</plugin>For Dependency Users
If you include Liquibase as a dependency in your application, update your dependency declarations.
Key changes to make:
Remove your liquibase-core dependency
Update your liquibase-commercial dependency GroupId from
org.liquibasetocom.liquibaseIf you only have a liquibase-core dependency, replace this with
com.liquibase:liquibase-commercial
Example code
<dependency>
<groupId>com.liquibase</groupId>
<artifactId>liquibase-commercial</artifactId>
<version>5.0.0</version>
</dependency>Maven plugin users: Verify the upgrade
Run a Liquibase goal from your Maven project directory:
mvn liquibase:updateSQL
This generates the SQL statements Liquibase would apply without executing them. If Liquibase Secure is configured correctly, this command will execute without errors.
Dependency users: Verify the upgrade
Run your Maven build:
mvn clean package
Verify the following:
The build completes successfully.
No dependency conflicts are reported.
Your application starts and Liquibase migrations run as expected.