public class ValidateMojo extends AbstractMigrationMojo {
public void executeMojo() throws MojoExecutionException {
getLog().info("Validating " + getUrl() + " using migrations at " + getMigrationsPath());
try {
Base.open(getDriver(), getUrl(), getUsername(), getPassword());
MigrationManager manager = new MigrationManager(getMigrationsPath());
List<Migration> pendingMigrations = manager.getPendingMigrations();
getLog().info("Database: " + getUrl());
getLog().info("Up-to-date: " + pendingMigrations.isEmpty());
if (!pendingMigrations.isEmpty()) {
getLog().info("Pending Migrations: ");