org.liquibase.maven.plugins.LiquibaseChangeLogSyncMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-maven-plugin Show documentation
Show all versions of liquibase-maven-plugin Show documentation
A Maven plugin wraps up some of the functionality of Liquibase
package org.liquibase.maven.plugins;
import liquibase.Contexts;
import liquibase.LabelExpression;
import liquibase.Liquibase;
import liquibase.exception.LiquibaseException;
/**
* Marks all unapplied changes to the database as applied in the change log.
*
* @author James Atwill
* @goal changelogSync
*/
public class LiquibaseChangeLogSyncMojo extends AbstractLiquibaseChangeLogMojo {
@Override
protected void performLiquibaseTask(Liquibase liquibase)
throws LiquibaseException {
super.performLiquibaseTask(liquibase);
liquibase.changeLogSync(new Contexts(contexts), new LabelExpression(getLabelFilter()));
}
}