Class AbstractLiquibaseChangeLogMojo

    • Field Detail

      • 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.
      • 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 Detail

      • AbstractLiquibaseChangeLogMojo

        public AbstractLiquibaseChangeLogMojo()
    • Method Detail

      • 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.
      • 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()