org.liquibase.maven.plugins.MavenUi 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.ui.ConsoleUIService;
import org.apache.maven.plugin.logging.Log;
public class MavenUi extends ConsoleUIService {
private final Log log;
public MavenUi(Log log) {
this.log = log;
}
@Override
public void sendMessage(String message) {
log.info(message);
}
@Override
public void sendErrorMessage(String message) {
log.error(message);
}
@Override
public void sendErrorMessage(String message, Throwable exception) {
log.error(message, exception);
}
}