Package org.liquibase.maven.plugins
Class AbstractLiquibaseChangeLogMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.liquibase.maven.plugins.AbstractLiquibaseMojo
org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled,- org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- AbstractLiquibaseUpdateMojo,- LiquibaseChangeLogSyncMojo,- LiquibaseChangeLogSyncSQLMojo,- LiquibaseChangeLogSyncToTagMojo,- LiquibaseChangeLogSyncToTagSQLMojo,- LiquibaseDatabaseDiff,- LiquibaseDBDocMojo,- LiquibaseReportStatusMojo,- LiquibaseRollback,- LiquibaseSnapshotMojo,- LiquibaseUnexpectedChangeSetsMojo,- LiquibaseValidate
A Liquibase MOJO that requires the user to provide a DatabaseChangeLogFile to be able
 to perform any actions on the database.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected StringSpecifies the directory where Liquibase can find your changelog file.protected StringSpecifies the changelog file for Liquibase to use.protected StringSpecifies which contexts Liquibase will execute, which can be separated by a comma if multiple contexts are required.protected StringHow to handle multiple files being found in the search path that have duplicate paths.protected StringSpecifies which Liquibase labels Liquibase will execute, which can be separated by a comma if multiple labels are required or you need to designate a more complex expression.protected StringDeprecated.Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojoanalyticsEnabled, 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.MojoROLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidPerforms some validation after the properties file has been loaded checking that all properties required have been specified.protected Liquibaseprotected ResourceAccessorprotected 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.AbstractLiquibaseMojocleanup, configureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLiquibase, getLog, getMavenArtifactClassLoader, getOutputStream, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackageMethods inherited from class org.apache.maven.plugin.AbstractMojogetPluginContext, setLog, setPluginContext
- 
Field Details- 
changeLogDirectorySpecifies the directory where Liquibase can find your changelog file. This is an aliases for searchPath
- 
changeLogFileSpecifies the changelog file for Liquibase to use.
- 
contextsSpecifies which contexts Liquibase will execute, which can be separated by a comma if multiple contexts are required. If a context is not specified, then ALL contexts will be executed.
- 
labelsDeprecated.Deprecated version of labelFilter
- 
labelFilterSpecifies which Liquibase labels Liquibase will execute, which can be separated by a comma if multiple labels are required or you need to designate a more complex expression. If a label is not specified, then ALL labels will be executed.
- 
duplicateFileModeHow to handle multiple files being found in the search path that have duplicate paths. Options are WARN (log warning and choose one at random) or ERROR (fail current operation)
 
- 
- 
Constructor Details- 
AbstractLiquibaseChangeLogMojopublic AbstractLiquibaseChangeLogMojo()
 
- 
- 
Method Details- 
checkRequiredParametersAreSpecifiedprotected void checkRequiredParametersAreSpecified() throws org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractLiquibaseMojoPerforms some validation after the properties file has been loaded checking that all properties required have been specified.- Overrides:
- checkRequiredParametersAreSpecifiedin class- AbstractLiquibaseMojo
- Throws:
- org.apache.maven.plugin.MojoFailureException- If any property that is required has not been specified.
 
- 
performLiquibaseTaskPerforms the actual Liquibase task on the database using the fully configuredLiquibase.- Specified by:
- performLiquibaseTaskin class- AbstractLiquibaseMojo
- Parameters:
- liquibase- The- Liquibasethat has been fully configured to run the desired database task.
- Throws:
- LiquibaseException
 
- 
printSettingsDescription 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 class- AbstractLiquibaseMojo
- Parameters:
- indent- The indent string to use when printing the settings.
 
- 
getResourceAccessorprotected ResourceAccessor getResourceAccessor(ClassLoader cl) throws IOException, org.apache.maven.plugin.MojoFailureException - Overrides:
- getResourceAccessorin class- AbstractLiquibaseMojo
- Throws:
- IOException
- org.apache.maven.plugin.MojoFailureException
 
- 
createLiquibaseprotected Liquibase createLiquibase(Database db) throws org.apache.maven.plugin.MojoExecutionException - Overrides:
- createLiquibasein class- AbstractLiquibaseMojo
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
- 
getLabelFilter
 
-