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
public class LiquibaseUpdate
- extends AbstractLiquibaseUpdateMojo
Applies the DatabaseChangeLogs to the database. Useful as part of the build process.
- Author:
- Peter Murray
Field Summary |
protected boolean |
dropFirst
Whether or not to perform a drop on the database before executing the change. |
Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo |
clearCheckSums, databaseClass, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logging, password, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, skip, systemProperties, url, username, verbose, wagonManager |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected void |
doUpdate(Liquibase liquibase)
Performs the actual "update" work on the database. |
protected void |
printSettings(String indent)
Prints the settings that have been set of defaulted for the plugin. |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dropFirst
protected boolean dropFirst
- Whether or not to perform a drop on the database before executing the change.
LiquibaseUpdate
public LiquibaseUpdate()
doUpdate
protected void doUpdate(Liquibase liquibase)
throws LiquibaseException
- Description copied from class:
AbstractLiquibaseUpdateMojo
- Performs the actual "update" work on the database.
- Specified by:
doUpdate
in class AbstractLiquibaseUpdateMojo
- Parameters:
liquibase
- The Liquibase object to use to perform the "update".
- Throws:
LiquibaseException
printSettings
protected void printSettings(String indent)
- Description copied from class:
AbstractLiquibaseMojo
- Prints the settings that have been set of defaulted for the plugin. These will only be shown in verbose mode.
- Overrides:
printSettings
in class AbstractLiquibaseUpdateMojo
- Parameters:
indent
- The indent string to use when printing the settings.
Copyright © 2004-2011 Liquibase.org. All Rights Reserved.