Class AbstractLiquibaseChangeLogMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.liquibase.maven.plugins.AbstractLiquibaseMojo
org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractLiquibaseUpdateMojo, LiquibaseChangeLogSyncMojo, LiquibaseChangeLogSyncSQLMojo, LiquibaseChangeLogSyncToTagMojo, LiquibaseChangeLogSyncToTagSQLMojo, LiquibaseDatabaseDiff, LiquibaseDBDocMojo, LiquibaseReportStatusMojo, LiquibaseRollback, LiquibaseRollbackOneChangeSetMojo, LiquibaseRollbackOneChangeSetSQL, LiquibaseRollbackOneUpdateMojo, LiquibaseRollbackOneUpdateSQL, LiquibaseUnexpectedChangeSetsMojo, LiquibaseValidate

public abstract class AbstractLiquibaseChangeLogMojo extends AbstractLiquibaseMojo
A Liquibase MOJO that requires the user to provide a DatabaseChangeLogFile to be able to perform any actions on the database.
  • Field Details

    • changeLogDirectory

      @PropertyElement protected String changeLogDirectory
      Specifies the directory where Liquibase can find your changelog file. This is an aliases for searchPath
    • changeLogFile

      @PropertyElement protected String changeLogFile
      Specifies the changelog file for Liquibase to use.
    • contexts

      @PropertyElement protected String contexts
      Specifies which contexts Liquibase will execute, which can be separated by a comma if multiple contexts are required. If a context is not specified, then ALL contexts will be executed.
    • labels

      Deprecated.
      Deprecated version of labelFilter
    • labelFilter

      @PropertyElement 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. If a label is not specified, then ALL labels will be executed.
    • duplicateFileMode

      @PropertyElement protected String duplicateFileMode
      How to handle multiple files being found in the search path that have duplicate paths. Options are WARN (log warning and choose one at random) or ERROR (fail current operation)
  • Constructor Details

    • AbstractLiquibaseChangeLogMojo

      public AbstractLiquibaseChangeLogMojo()
  • Method Details

    • checkRequiredParametersAreSpecified

      protected void checkRequiredParametersAreSpecified() throws org.apache.maven.plugin.MojoFailureException
      Description copied from class: AbstractLiquibaseMojo
      Performs some validation after the properties file has been loaded checking that all properties required have been specified.
      Overrides:
      checkRequiredParametersAreSpecified in class AbstractLiquibaseMojo
      Throws:
      org.apache.maven.plugin.MojoFailureException - If any property that is required has not been specified.
    • performLiquibaseTask

      protected void performLiquibaseTask(liquibase.Liquibase liquibase) throws liquibase.exception.LiquibaseException
      Performs the actual Liquibase task on the database using the fully configured Liquibase.
      Specified by:
      performLiquibaseTask in class AbstractLiquibaseMojo
      Parameters:
      liquibase - The Liquibase that has been fully configured to run the desired database task.
      Throws:
      liquibase.exception.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 AbstractLiquibaseMojo
      Parameters:
      indent - The indent string to use when printing the settings.
    • getResourceAccessor

      protected liquibase.resource.ResourceAccessor getResourceAccessor(ClassLoader cl) throws IOException, org.apache.maven.plugin.MojoFailureException
      Overrides:
      getResourceAccessor in class AbstractLiquibaseMojo
      Throws:
      IOException
      org.apache.maven.plugin.MojoFailureException
    • createLiquibase

      protected liquibase.Liquibase createLiquibase(liquibase.database.Database db) throws org.apache.maven.plugin.MojoExecutionException
      Overrides:
      createLiquibase in class AbstractLiquibaseMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getLabelFilter

      public String getLabelFilter()