Class LiquibaseRollbackOneUpdateMojo

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

    public class LiquibaseRollbackOneUpdateMojo
    extends AbstractLiquibaseChangeLogMojo
    Rolls back all changesets from any specific update, if all changesets can be rolled back. By default, the last update is rolled back, but an optional deployentId parameter can target any update. (Liquibase Pro only).
    • Field Detail

      • deploymentId

        @PropertyElement
        protected String deploymentId
        Specifies the update your want to rollback. A list of the updates's changesets grouped by their deploymentId can be found by using the history command.
    • Constructor Detail

      • LiquibaseRollbackOneUpdateMojo

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