public class LiquibaseDatabaseDiff extends AbstractLiquibaseChangeLogMojo
Modifier and Type | Field and Description |
---|---|
protected String |
diffChangeLogFile
If this parameter is set, the changelog needed to "fix" differences between the two databases is output.
|
protected String |
diffExcludeObjects
Objects to be excluded from the changelog.
|
protected boolean |
diffIncludeCatalog
Include the catalog in the diff output? If this is null then the catalog will not be included
|
protected String |
diffIncludeObjects
Objects to be included in the changelog.
|
protected boolean |
diffIncludeSchema
Include the schema in the diff output? If this is null then the schema will not be included
|
protected boolean |
diffIncludeTablespace
Include the tablespace in the diff output? If this is null then the tablespace will not be included
|
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 String |
referenceDefaultCatalogName
The reference database catalog.
|
protected String |
referenceDefaultSchemaName
The reference database schema.
|
protected String |
referenceDriver
The fully qualified name of the driver class to use to connect to the reference database.
|
protected String |
referencePassword
The reference database password to use to connect to the specified database.
|
protected String |
referenceUrl
The reference database URL to connect to for executing Liquibase.
|
protected String |
referenceUsername
The reference database username to use to connect to the specified database.
|
changeLogDirectory, changeLogFile, contexts, labels
changelogCatalogName, changelogSchemaName, clearCheckSums, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, defaultCatalogName, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logging, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, skip, systemProperties, url, username, verbose, wagonManager
Constructor and Description |
---|
LiquibaseDatabaseDiff() |
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.
|
void |
execute() |
protected boolean |
isPromptOnNonLocalDatabase() |
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.
|
createLiquibase, getFileOpener
cleanup, configureChangeLogProperties, configureFieldsAndValues, getClassLoaderIncludingProjectClasspath, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, parsePropertiesFile, setupBindInfoPackage
protected String referenceDriver
AbstractLiquibaseMojo.driver
will be used instead.protected String referenceUrl
protected String referenceUsername
protected String referencePassword
protected String referenceDefaultCatalogName
protected String referenceDefaultSchemaName
protected String diffChangeLogFile
protected boolean diffIncludeCatalog
protected boolean diffIncludeSchema
protected boolean diffIncludeTablespace
protected String diffTypes
protected String diffExcludeObjects
protected String diffIncludeObjects
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractLiquibaseMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException
AbstractLiquibaseChangeLogMojo
Liquibase
.performLiquibaseTask
in class AbstractLiquibaseChangeLogMojo
liquibase
- The Liquibase
that has been fully
configured to run the desired database task.LiquibaseException
protected void printSettings(String indent)
AbstractLiquibaseMojo
printSettings
in class AbstractLiquibaseChangeLogMojo
indent
- The indent string to use when printing the settings.protected void checkRequiredParametersAreSpecified() throws org.apache.maven.plugin.MojoFailureException
AbstractLiquibaseMojo
checkRequiredParametersAreSpecified
in class AbstractLiquibaseChangeLogMojo
org.apache.maven.plugin.MojoFailureException
- If any property that is required has not been
specified.protected boolean isPromptOnNonLocalDatabase()
isPromptOnNonLocalDatabase
in class AbstractLiquibaseMojo
Copyright © 2020 Liquibase.org. All rights reserved.