All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.liquibase.maven.plugins.LiquibaseValidate Maven / Gradle / Ivy

The newest version!
package org.liquibase.maven.plugins;

import liquibase.Liquibase;
import liquibase.exception.LiquibaseException;
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"));
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy