Class LiquibaseChangeLogSyncToTagSQLMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class LiquibaseChangeLogSyncToTagSQLMojo extends AbstractLiquibaseChangeLogMojo

Generates SQL that marks all unapplied changes up to and including a specified tag as applied.

  • Field Details

    • migrationSqlOutputFile

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

      @PropertyElement protected String toTag
      Update to the changeSet with the given tag command.
  • Constructor Details

    • LiquibaseChangeLogSyncToTagSQLMojo

      public LiquibaseChangeLogSyncToTagSQLMojo()
  • Method Details

    • checkRequiredParametersAreSpecified

      protected void checkRequiredParametersAreSpecified() throws org.apache.maven.plugin.MojoFailureException
      Description copied from class: AbstractLiquibaseMojo
      Performs some validation after the properties file has been loaded checking that all properties required have been specified.
      Overrides:
      checkRequiredParametersAreSpecified in class AbstractLiquibaseChangeLogMojo
      Throws:
      org.apache.maven.plugin.MojoFailureException - If any property that is required has not been specified.
    • performLiquibaseTask

      protected void performLiquibaseTask(liquibase.Liquibase liquibase) throws liquibase.exception.LiquibaseException
      Description copied from class: AbstractLiquibaseChangeLogMojo
      Performs the actual Liquibase task on the database using the fully configured Liquibase.
      Overrides:
      performLiquibaseTask in class AbstractLiquibaseChangeLogMojo
      Parameters:
      liquibase - The Liquibase that has been fully configured to run the desired database task.
      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 AbstractLiquibaseChangeLogMojo
      Parameters:
      indent - The indent string to use when printing the settings.
    • createLiquibase

      protected liquibase.Liquibase createLiquibase(liquibase.database.Database db) throws org.apache.maven.plugin.MojoExecutionException
      Overrides:
      createLiquibase in class AbstractLiquibaseChangeLogMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • cleanup

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