Package org.liquibase.maven.plugins
Class AbstractLiquibaseFlowMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.liquibase.maven.plugins.AbstractLiquibaseMojo
-
- org.liquibase.maven.plugins.AbstractLiquibaseFlowMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
LiquibaseFlowMojo
,LiquibaseFlowValidateMojo
public abstract class AbstractLiquibaseFlowMojo extends AbstractLiquibaseMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>
flowCommandArguments
Arbitrary map of parameters that the underlying liquibase command will use.protected String
flowFile
Specifies the flowFile to use.protected File
outputFile
-
Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
changeExecListenerClass, changeExecListenerPropertiesFile, changelogCatalogName, changelogSchemaName, clearCheckSums, commandName, databaseChangelogHistoryCaptureExtensions, databaseChangelogHistoryCaptureSql, databaseChangelogHistoryEnabled, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, dbclHistoryCaptureExtensions, dbclHistoryCaptureSql, dbclHistoryEnabled, defaultCatalogName, defaultChangeExecListener, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logFormat, logging, logLevel, mojoExecution, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, preserveSchemaCase, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, psqlArgs, psqlKeepTemp, psqlKeepTempName, psqlKeepTempPath, psqlLogFile, psqlPath, psqlTimeout, searchPath, session, showBanner, skip, skipOnFileExists, sqlcmdArgs, sqlcmdCatalogName, sqlcmdKeepTemp, sqlcmdKeepTempName, sqlcmdKeepTempOverwrite, sqlcmdKeepTempPath, sqlcmdLogFile, sqlcmdPath, sqlcmdTimeout, sqlPlusArgs, sqlPlusKeepTemp, sqlPlusKeepTempName, sqlPlusKeepTempOverwrite, sqlPlusKeepTempPath, sqlPlusLogFile, sqlPlusPath, sqlPlusTimeout, systemProperties, url, username, verbose, wagonManager
-
-
Constructor Summary
Constructors Constructor Description AbstractLiquibaseFlowMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
databaseConnectionRequired()
Optionally, an implementation of this mojo can override this to indicate that a connection to the database is not required.abstract String[]
getCommandName()
protected void
performLiquibaseTask(Liquibase liquibase)
-
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
checkRequiredParametersAreSpecified, cleanup, configureChangeLogProperties, configureFieldsAndValues, createLiquibase, execute, getClassLoaderIncludingProjectClasspath, getField, getLicenseKey, getLiquibase, getLog, getMavenArtifactClassLoader, getOutputStream, getOutputWriter, getResourceAccessor, isPromptOnNonLocalDatabase, parsePropertiesFile, printSettings, setPassword, setupBindInfoPackage, setUrl, setUsername
-
-
-
-
Field Detail
-
flowFile
@PropertyElement protected String flowFile
Specifies the flowFile to use. If not specified, the default checks will be used and no file will be created.
-
outputFile
@PropertyElement protected File outputFile
-
flowCommandArguments
@PropertyElement protected Map<String,Object> flowCommandArguments
Arbitrary map of parameters that the underlying liquibase command will use. These arguments will be passed verbatim to the underlying liquibase command that is being run.
-
-
Method Detail
-
databaseConnectionRequired
public boolean databaseConnectionRequired()
Description copied from class:AbstractLiquibaseMojo
Optionally, an implementation of this mojo can override this to indicate that a connection to the database is not required.- Overrides:
databaseConnectionRequired
in classAbstractLiquibaseMojo
-
performLiquibaseTask
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException
- Specified by:
performLiquibaseTask
in classAbstractLiquibaseMojo
- Throws:
LiquibaseException
-
getCommandName
public abstract String[] getCommandName()
-
-