public void execute() throws MojoExecutionException, MojoFailureException
{
try {
registerVersionFactoryFromSettings();
DbConfiguration config =
DbConfiguration.createSelfInitConfigurationForTable(patchTable)
.setDataSource(getDataSource())
.setVariables(getParameters())
.setEventListener(this);
if (stepsPackage == null || stepsPackage.isEmpty()) {
config.setStepsSourceForDirectory(stepsDir);
} else {
config.setStepsSource(new PackageResource(stepsPackage, getClassLoaderWithCompiledClasses()));
}
config.build().patch();
} catch (Exception e) {
getLog().error(e);
}
}