org.liquibase.maven.plugins.LiquibaseValidate 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.Liquibase;
import liquibase.Scope;
import liquibase.exception.LiquibaseException;
import liquibase.integration.commandline.Main;
import org.apache.maven.plugin.MojoFailureException;
import java.util.ResourceBundle;
/**
* Validates liquibase changelog
*
* @author Balazs Desi
* @goal validate
*/
public class LiquibaseValidate extends AbstractLiquibaseChangeLogMojo{
@Override
protected void checkRequiredParametersAreSpecified() throws MojoFailureException {
super.checkRequiredParametersAreSpecified();
}
@Override
protected void printSettings(String indent) {
super.printSettings(indent);
}
@Override
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException {
liquibase.validate();
getLog().info(ResourceBundle.getBundle("liquibase/i18n/liquibase-core").getString("no.validation.errors.found"));
}
}