Class LiquibaseRollbackOneChangeSetMojo

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

    public class LiquibaseRollbackOneChangeSetMojo
    extends AbstractLiquibaseChangeLogMojo
    Reverts (rolls back) one non-sequential changeSet made during a previous change to your database. It is only available for Liquibase Pro users.
    • Field Detail

      • changeSetAuthor

        @PropertyElement
        protected String changeSetAuthor
        Specifies the author of the changeSet you want to rollback.
      • changeSetPath

        @PropertyElement
        protected String changeSetPath
        Specifies the path to the changelog which contains the change-set you want to rollback.
      • force

        @PropertyElement
        protected String force
        A required flag which indicates you intend to run rollbackOneChangeSet
    • Constructor Detail

      • LiquibaseRollbackOneChangeSetMojo

        public LiquibaseRollbackOneChangeSetMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractLiquibaseMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • 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.
      • 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