public class LiquibaseGenerateChangeLogMojo extends AbstractLiquibaseMojo
Generates a changelog based on the current database schema. Typically used when beginning to use Liquibase on an existing project and database schema.
Modifier and Type | Field and Description |
---|---|
protected String |
changeSetAuthor
The author to be specified for Changesets in the generated Change Log.
|
protected String |
changeSetContext
The execution context to be used for Changesets in the generated Change Log, which can be "," separated if multiple contexts.
|
protected String |
contexts
are required.
|
protected String |
dataDir
Directory where insert statement csv files will be kept.
|
protected String |
diffExcludeObjects
Objects to be excluded from the changelog.
|
protected String |
diffIncludeObjects
Objects to be included in the changelog.
|
protected String |
diffTypes
List of diff types to include in Change Log expressed as a comma separated list from: tables, views, columns, indexes, foreignkeys, primarykeys, uniqueconstraints, data.
|
protected Boolean |
includeSchema
Flag to Indicate liquibase whether or not to include schema name on changelog
|
protected String |
outputChangeLogFile
The target change log file to output to.
|
protected boolean |
overwriteOutputFile
Flag to allow overwriting of output changelog file
|
protected String |
schemas
Specifies the a list of schemas to indicate liquibase where to apply change objects or where to read current state from
|
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 |
---|
LiquibaseGenerateChangeLogMojo() |
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 |
performLiquibaseTask(Liquibase liquibase) |
protected void |
printSettings(String indent)
Prints the settings that have been set of defaulted for the plugin.
|
cleanup, configureChangeLogProperties, configureFieldsAndValues, createLiquibase, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLicenseKey, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, getResourceAccessor, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackage
@PropertyElement protected String diffTypes
@PropertyElement protected String dataDir
@PropertyElement protected String changeSetAuthor
@PropertyElement protected String contexts
@PropertyElement protected String changeSetContext
@PropertyElement protected String outputChangeLogFile
@PropertyElement protected String diffExcludeObjects
@PropertyElement protected String diffIncludeObjects
@PropertyElement protected String schemas
@PropertyElement protected Boolean includeSchema
@PropertyElement protected boolean overwriteOutputFile
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException
performLiquibaseTask
in class AbstractLiquibaseMojo
LiquibaseException
protected void checkRequiredParametersAreSpecified() throws org.apache.maven.plugin.MojoFailureException
checkRequiredParametersAreSpecified
in class AbstractLiquibaseMojo
org.apache.maven.plugin.MojoFailureException
- If any property that is required has not been
specified.protected void printSettings(String indent)
AbstractLiquibaseMojo
printSettings
in class AbstractLiquibaseMojo
indent
- The indent string to use when printing the settings.Copyright © 2023 Liquibase.org. All rights reserved.