Class LiquibaseUpdateSQL

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

public class LiquibaseUpdateSQL extends AbstractLiquibaseUpdateMojo

Generates the SQL that is required to update the database to the current version as specified in the DatabaseChangeLogs.

  • Field Details

    • migrationSqlOutputFile

      @PropertyElement protected File migrationSqlOutputFile
      The file to output the Migration SQL script to, if it exists it will be overwritten.
  • Constructor Details

    • LiquibaseUpdateSQL

      public LiquibaseUpdateSQL()
  • 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
    • createLiquibase

      protected liquibase.Liquibase createLiquibase(liquibase.database.Database db) throws org.apache.maven.plugin.MojoExecutionException
      Overrides:
      createLiquibase in class AbstractLiquibaseUpdateMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • 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.
    • cleanup

      protected void cleanup(liquibase.database.Database db)
      Overrides:
      cleanup in class AbstractLiquibaseMojo