Class FlywayMigrateMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="flyway-migrate")
    public class FlywayMigrateMojo
    extends org.apache.maven.plugin.AbstractMojo
    Migrates a collection of DBUnit data set files from one database schema version to another with the use of Flyway and testcontainers.
    Author:
    René Link <rene.link@link-intersystems.com>
    • Field Detail

      • project

        @Parameter(property="project",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
      • mojoExecution

        @Parameter(property="mojoExecution",
                   readonly=true,
                   required=true)
        protected org.apache.maven.plugin.MojoExecution mojoExecution
      • mavenSession

        @Parameter(defaultValue="${session}",
                   required=true,
                   readonly=true)
        protected org.apache.maven.execution.MavenSession mavenSession
    • Constructor Detail

      • FlywayMigrateMojo

        public FlywayMigrateMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • autoConfigure

        protected void autoConfigure()
                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • validateConfigurations

        protected void validateConfigurations()
                                       throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • executeMigration

        protected void executeMigration()
      • getSlf4JLogger

        protected org.slf4j.Logger getSlf4JLogger()
      • getDataSetResources

        protected List<com.link_intersystems.dbunit.stream.resource.DataSetResource> getDataSetResources​(com.link_intersystems.util.config.properties.ConfigProperties config)