public class LiquibaseChangeLogSyncToTagSQLMojo extends AbstractLiquibaseChangeLogMojo
Generates SQL that marks all unapplied changes up to and including a specified tag as applied.
| Modifier and Type | Field and Description |
|---|---|
protected File |
migrationSqlOutputFile
The file to output the Migration SQL script to, if it exists it will be
overwritten.
|
protected String |
toTag
Update to the changeSet with the given tag command.
|
changeLogDirectory, changeLogFile, contexts, hubApiKey, hubMode, hubUrl, labelschangelogCatalogName, changelogSchemaName, clearCheckSums, commandName, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, defaultCatalogName, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, liquibaseProLicenseKey, logging, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, skip, systemProperties, url, username, verbose, wagonManager| Constructor and Description |
|---|
LiquibaseChangeLogSyncToTagSQLMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkRequiredParametersAreSpecified()
Performs some validation after the properties file has been loaded checking that all
properties required have been specified.
|
protected void |
cleanup(Database db) |
protected Liquibase |
createLiquibase(Database db) |
protected void |
performLiquibaseTask(Liquibase liquibase)
Performs the actual Liquibase task on the database using the fully configured
Liquibase. |
protected void |
printSettings(String indent)
Prints the settings that have been set of defaulted for the plugin.
|
getResourceAccessorconfigureChangeLogProperties, configureFieldsAndValues, execute, getClassLoaderIncludingProjectClasspath, getField, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, hasProLicense, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackage@PropertyElement protected File migrationSqlOutputFile
@PropertyElement protected String toTag
protected void checkRequiredParametersAreSpecified()
throws org.apache.maven.plugin.MojoFailureException
AbstractLiquibaseMojocheckRequiredParametersAreSpecified in class AbstractLiquibaseChangeLogMojoorg.apache.maven.plugin.MojoFailureException - If any property that is required has not been
specified.protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException
AbstractLiquibaseChangeLogMojoLiquibase.performLiquibaseTask in class AbstractLiquibaseChangeLogMojoliquibase - The Liquibase that has been fully
configured to run the desired database task.LiquibaseExceptionprotected void printSettings(String indent)
AbstractLiquibaseMojoprintSettings in class AbstractLiquibaseChangeLogMojoindent - The indent string to use when printing the settings.protected Liquibase createLiquibase(Database db) throws org.apache.maven.plugin.MojoExecutionException
createLiquibase in class AbstractLiquibaseChangeLogMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected void cleanup(Database db)
cleanup in class AbstractLiquibaseMojoCopyright © 2022 Liquibase.org. All rights reserved.