Package org.liquibase.maven.plugins
Class LiquibaseUpdate
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.liquibase.maven.plugins.AbstractLiquibaseMojo
org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
org.liquibase.maven.plugins.AbstractLiquibaseUpdateMojo
org.liquibase.maven.plugins.LiquibaseUpdate
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
Applies the DatabaseChangeLogs to the database. Useful as part of the build process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether or not to perform a drop on the database before executing the change.Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseUpdateMojo
changesToApply, showSummary, showSummaryOutput, toTagFields 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 voidPerforms the actual "update" work on the database.protected voidprintSettings(String indent) Prints the settings that have been set of defaulted for the plugin.Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseUpdateMojo
createLiquibase, performLiquibaseTaskMethods 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
-
dropFirst
Whether or not to perform a drop on the database before executing the change.
-
-
Constructor Details
-
LiquibaseUpdate
public LiquibaseUpdate()
-
-
Method Details
-
doUpdate
Description copied from class:AbstractLiquibaseUpdateMojoPerforms the actual "update" work on the database.- Specified by:
doUpdatein classAbstractLiquibaseUpdateMojo- Parameters:
liquibase- The Liquibase object to use to perform the "update".- Throws:
LiquibaseException
-
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 classAbstractLiquibaseUpdateMojo- Parameters:
indent- The indent string to use when printing the settings.
-