org.liquibase.maven.plugins.LiquibaseChecksShowMojo 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
The newest version!
package org.liquibase.maven.plugins;
import liquibase.Liquibase;
import liquibase.command.CommandScope;
import liquibase.exception.CommandExecutionException;
import liquibase.util.StringUtil;
/**
* List available checks, their configuration options, and current settings
*
* @goal checks.show
*/
public class LiquibaseChecksShowMojo extends AbstractLiquibaseChecksMojo {
@Override
protected void performLiquibaseTask(Liquibase liquibase) throws CommandExecutionException {
CommandScope liquibaseCommand = new CommandScope("checks", "show");
if (StringUtil.isNotEmpty(checksSettingsFile)) {
liquibaseCommand.addArgumentValue("checksSettingsFile", checksSettingsFile);
}
liquibaseCommand.addArgumentValue("checksIntegration", "maven");
liquibaseCommand.execute();
}
}