Class LiquibaseUpdate

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class LiquibaseUpdate extends AbstractLiquibaseUpdateMojo

Applies the DatabaseChangeLogs to the database. Useful as part of the build process.

  • Field Details

    • dropFirst

      @PropertyElement protected boolean dropFirst
      Whether or not to perform a drop on the database before executing the change.
  • Constructor Details

    • LiquibaseUpdate

      public LiquibaseUpdate()
  • Method Details

    • doUpdate

      protected void doUpdate(liquibase.Liquibase liquibase) throws liquibase.exception.LiquibaseException
      Description copied from class: AbstractLiquibaseUpdateMojo
      Performs the actual "update" work on the database.
      Specified by:
      doUpdate in class AbstractLiquibaseUpdateMojo
      Parameters:
      liquibase - The Liquibase object to use to perform the "update".
      Throws:
      liquibase.exception.LiquibaseException
    • printSettings

      protected void printSettings(String indent)
      Description copied from class: AbstractLiquibaseMojo
      Prints the settings that have been set of defaulted for the plugin. These will only be shown in verbose mode.
      Overrides:
      printSettings in class AbstractLiquibaseUpdateMojo
      Parameters:
      indent - The indent string to use when printing the settings.