Maven clearCheckSums
Last updated: July 14, 2025
The clearCheckSums goal clears all checksums and nullifies the MD5SUM column of the DATABASECHANGELOG table. They will be re-computed on the next database update --changesets that have been deployed will have their checksums re-computed, and pending changesets will be deployed.
Uses
The clearCheckSums
goal is typically used when there is an MD5Sum Check Failed
error message and there is a need to clear the checksums from the DATABASECHANGELOG table.
Maven configuration
You can configure Liquibase Maven in multiple ways. You can pass arguments like <changeLogFile>
in Maven directly in your pom.xml
file, in a liquibase.properties
file referenced in your POM, as environment variables, or as JVM system properties. To learn about each file's syntax, see Maven Properties.
Tip: For more information about the Maven configuration, see Configuring Maven.
Running the clearCheckSums Maven goal
Running the clearCheckSums
goal requires a Maven project to be implemented. To run the goal, type the following in your command prompt:
mvn liquibase:clearCheckSums
Maven clearCheckSums
Optional Maven clearCheckSums configuration attributes
Attribute | Definition |
---|---|
| Specifies the catalog Liquibase will use to create your changelog tables. |
| Specifies the schema Liquibase will use to create your changelog tables. |
| Boolean. Forces checksums to be cleared from the DATABASECHANGELOG table. Default value is: false. |
| Specifies the table name to use for the DATABASECHANGELOG table. |
| Specifies the table name to use for the DATABASECHANGELOG table. |
| Specifies the database object class. |
| Specifies the default catalog name to use for the database connection. |
| Specifies the default schema name to use for the database connection. |
| Specifies the driver class name to use for the database connection. |
| Specifies the location of a JDBC connection properties file which contains properties the driver will use. |
| Deprecated. Boolean. Use an empty or null value for the password instead. Default value is: false. |
| Specifies a map-based collection of changelog properties to apply. |
| Specifies a property-based collection of changelog properties to apply. |
| Boolean. Includes a Maven project artifact in the class loader, which obtains the Liquibase properties file and changelog files. Default value is |
| Boolean. Includes the Maven test output directory in the class loader which obtains the Liquibase properties file and changelog files. Default value is |
| Specifies your Liquibase Pro license key. |
| Boolean. Specifies whether to ignore the catalog or database name. Default value is: false. |
| Boolean. Specifies whether to ignore the schema name. Default value is: false. |
| Indicates that you want to set the character encoding of the output file during the |
| Specifies the database password for the database connection. |
| Deprecated. Boolean. Controls whether users are prompted before executing changesets to a non-local database. Default value is: true. |
| Specifies the Liquibase properties file to use for configuration, like |
| Boolean. Indicates that you want the |
| Specifies the property provider, which must be a |
| Specifies the server ID in the Maven |
| Boolean. Specifies whether to skip running Liquibase. The use of this attribute is not recommended but can be used when needed. Default value is: false. |
| Specifies a list of system properties you want to pass to the database. |
| Specifies the database URL you want to use to execute Liquibase. |
| Specifies the database username for the database connection. |
| Boolean. Controls the amount of output detail when you call the plugin. Default value is: false. |
Maven clearCheckSums output
When successful, the clearCheckSums goal produces the following output:
[INFO] Executing on Database: jdbc:oracle:thin:@support.datical.net:1521:ORCL
[INFO] Clearing database change log checksums
[INFO] SELECT COUNT(*) FROM DATABASECHANGELOGLOCK
[INFO] SELECT COUNT(*) FROM DATABASECHANGELOGLOCK
[INFO] SELECT LOCKED FROM DATABASECHANGELOGLOCK WHERE ID=1 FOR UPDATE
[INFO] Successfully acquired change log lock
[INFO] SELECT MD5SUM FROM DATABASECHANGELOG WHERE MD5SUM IS NOT NULL AND ROWNUM=1
[INFO] UPDATE DATABASECHANGELOG SET MD5SUM = NULL
[INFO] Successfully released change log lock