Class InfoMojo

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

    @Mojo(name="info",
          requiresDependencyResolution=TEST,
          defaultPhase=PRE_INTEGRATION_TEST,
          threadSafe=true)
    public class InfoMojo
    extends org.apache.maven.plugin.AbstractMojo
    Maven goal to retrieve the complete information about the migrations including applied, pending and current migrations with details and status.
    • Field Summary

      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      InfoMojo()  
    • Method Summary

      Modifier and Type Method Description
      protected void doExecute​(org.flywaydb.core.Flyway flyway)
      Executes this mojo.
      void execute()  
      protected java.lang.String getProperty​(java.lang.String name)
      Retrieves this property from either the system or the maven properties.
      • 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
    • Constructor Detail

      • InfoMojo

        public InfoMojo()
    • Method Detail

      • doExecute

        protected void doExecute​(org.flywaydb.core.Flyway flyway)
        Executes this mojo.
        Parameters:
        flyway - The flyway instance to operate on.
      • execute

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

        protected java.lang.String getProperty​(java.lang.String name)
        Retrieves this property from either the system or the maven properties.
        Parameters:
        name - The name of the property to retrieve.
        Returns:
        The property value. null if not found.