Package org.liquibase.maven.plugins
Class AbstractLiquibaseUpdateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.liquibase.maven.plugins.AbstractLiquibaseMojo
org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
org.liquibase.maven.plugins.AbstractLiquibaseUpdateMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
LiquibaseUpdate,LiquibaseUpdateSQL,LiquibaseUpdateTestingRollback
Liquibase Update Maven plugin. This plugin allows for DatabaseChangeLogs to be
applied to a database as part of a Maven build process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe number of changes to apply to the database.protected UpdateSummaryEnumWhether or not to print a summary of the update operation.protected UpdateSummaryOutputEnumFlag to control where we show the summary.protected StringUpdate to the changeSet with the given tag command.Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
changeLogDirectory, changeLogFile, contexts, duplicateFileMode, labelFilter, labelsFields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
analyticsEnabled, changeExecListenerClass, changeExecListenerPropertiesFile, changelogCatalogName, changelogSchemaName, clearCheckSums, commandName, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, defaultCatalogName, defaultChangeExecListener, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logging, logLevel, mojoExecution, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, preserveSchemaCase, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, searchPath, session, showBanner, skip, skipOnFileExists, suppressLiquibaseSql, systemProperties, url, username, verbose, wagonManagerFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Liquibaseprotected abstract voidPerforms the actual "update" work on the database.protected voidperformLiquibaseTask(Liquibase liquibase) Performs the actual Liquibase task on the database using the fully configuredLiquibase.protected voidprintSettings(String indent) Prints the settings that have been set of defaulted for the plugin.Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
checkRequiredParametersAreSpecified, getLabelFilter, getResourceAccessorMethods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
cleanup, configureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLiquibase, getLog, getMavenArtifactClassLoader, getOutputStream, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackageMethods inherited from class org.apache.maven.plugin.AbstractMojo
getPluginContext, setLog, setPluginContext
-
Field Details
-
changesToApply
The number of changes to apply to the database. By default this value is 0, which will result in all changes (not already applied to the database) being applied. -
toTag
Update to the changeSet with the given tag command. -
showSummary
Whether or not to print a summary of the update operation. Allowed values: 'OFF', 'SUMMARY' (default), 'VERBOSE' -
showSummaryOutput
Flag to control where we show the summary. Allowed values: 'LOG', 'CONSOLE', OR 'ALL' (default)
-
-
Constructor Details
-
AbstractLiquibaseUpdateMojo
public AbstractLiquibaseUpdateMojo()
-
-
Method Details
-
performLiquibaseTask
Description copied from class:AbstractLiquibaseChangeLogMojoPerforms the actual Liquibase task on the database using the fully configuredLiquibase.- Overrides:
performLiquibaseTaskin classAbstractLiquibaseChangeLogMojo- Parameters:
liquibase- TheLiquibasethat has been fully configured to run the desired database task.- Throws:
LiquibaseException
-
doUpdate
Performs the actual "update" work on the database.- Parameters:
liquibase- The Liquibase object to use to perform the "update".- Throws:
LiquibaseException
-
createLiquibase
protected Liquibase createLiquibase(Database db) throws org.apache.maven.plugin.MojoExecutionException - Overrides:
createLiquibasein classAbstractLiquibaseChangeLogMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
printSettings
Description copied from class:AbstractLiquibaseMojoPrints the settings that have been set of defaulted for the plugin. These will only be shown in verbose mode.- Overrides:
printSettingsin classAbstractLiquibaseChangeLogMojo- Parameters:
indent- The indent string to use when printing the settings.
-