public abstract class AbstractLiquibaseChangeLogMojo extends AbstractLiquibaseMojo
Modifier and Type | Field and Description |
---|---|
protected String |
changeLogDirectory
Specifies the directory where Liquibase can find your changelog file.
|
protected String |
changeLogFile
Specifies the changelog file for Liquibase to use.
|
protected String |
contexts
Specifies which contexts Liquibase will execute, which can be separated by a comma if multiple contexts
are required.
|
protected String |
duplicateFileMode
How to handle multiple files being found in the search path that have duplicate paths.
|
protected String |
hubApiKey
Specifies the Liquibase Hub API key for Liquibase to use.
|
protected String |
hubMode
Specifies the Liquibase Hub URL for Liquibase to use.
|
protected String |
hubUrl
Specifies the Liquibase Hub URL for Liquibase to use.
|
protected String |
labelFilter
Specifies 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 String |
labels
Deprecated.
|
changeExecListenerClass, changeExecListenerPropertiesFile, changelogCatalogName, changelogSchemaName, clearCheckSums, commandName, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, defaultCatalogName, defaultChangeExecListener, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logging, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, preserveSchemaCase, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, psqlArgs, psqlExecutorName, psqlKeepTemp, psqlKeepTempName, psqlKeepTempPath, psqlLogFile, psqlPath, psqlTimeout, searchPath, showBanner, skip, sqlcmdArgs, sqlcmdCatalogName, sqlcmdExecutorName, sqlcmdKeepTemp, sqlcmdKeepTempName, sqlcmdKeepTempOverwrite, sqlcmdKeepTempPath, sqlcmdLogFile, sqlcmdPath, sqlcmdTimeout, sqlPlusArgs, sqlPlusExecutorName, sqlPlusKeepTemp, sqlPlusKeepTempName, sqlPlusKeepTempOverwrite, sqlPlusKeepTempPath, sqlPlusLogFile, sqlPlusPath, sqlPlusTimeout, systemProperties, url, username, verbose, wagonManager
Constructor and Description |
---|
AbstractLiquibaseChangeLogMojo() |
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 Liquibase |
createLiquibase(Database db) |
String |
getLabelFilter() |
protected ResourceAccessor |
getResourceAccessor(ClassLoader cl) |
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.
|
cleanup, configureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLicenseKey, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackage
@PropertyElement protected String changeLogDirectory
@PropertyElement protected String changeLogFile
@PropertyElement protected String contexts
@PropertyElement protected String labels
@PropertyElement protected String labelFilter
@PropertyElement(key="liquibase.hub.apiKey") protected String hubApiKey
@PropertyElement(key="liquibase.hub.url") protected String hubUrl
@PropertyElement(key="liquibase.hub.mode") protected String hubMode
@PropertyElement protected String duplicateFileMode
protected void checkRequiredParametersAreSpecified() throws org.apache.maven.plugin.MojoFailureException
AbstractLiquibaseMojo
checkRequiredParametersAreSpecified
in class AbstractLiquibaseMojo
org.apache.maven.plugin.MojoFailureException
- If any property that is required has not been
specified.protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException
Liquibase
.performLiquibaseTask
in class AbstractLiquibaseMojo
liquibase
- The Liquibase
that has been fully
configured to run the desired database task.LiquibaseException
protected void printSettings(String indent)
AbstractLiquibaseMojo
printSettings
in class AbstractLiquibaseMojo
indent
- The indent string to use when printing the settings.protected ResourceAccessor getResourceAccessor(ClassLoader cl) throws IOException, org.apache.maven.plugin.MojoFailureException
getResourceAccessor
in class AbstractLiquibaseMojo
IOException
org.apache.maven.plugin.MojoFailureException
protected Liquibase createLiquibase(Database db) throws org.apache.maven.plugin.MojoExecutionException
createLiquibase
in class AbstractLiquibaseMojo
org.apache.maven.plugin.MojoExecutionException
public String getLabelFilter()
Copyright © 2023 Liquibase.org. All rights reserved.