Plugin Documentation

Goals available for this plugin:

Goal Description
neo4j-migrations:clean Goal that cleans the configured database. Can be configured with all set to true for removing everything Neo4j-Migrations created in a schema database. Binds to the clean phase by default
neo4j-migrations:help Display help information on neo4j-migrations-maven-plugin.
Call mvn neo4j-migrations:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
neo4j-migrations:info Goal that retrieves information from the configured database about the migrations including applied, pending and current migrations.
neo4j-migrations:migrate Goal that applies the configured migrations.
neo4j-migrations:validate Calling Migrations.validate() during verify phase.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.8.6
JDK Default target for maven-compiler-plugin version 3.10.1
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>eu.michael-simons.neo4j</groupId>
          <artifactId>neo4j-migrations-maven-plugin</artifactId>
          <version>1.13.0</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>eu.michael-simons.neo4j</groupId>
        <artifactId>neo4j-migrations-maven-plugin</artifactId>
        <version>1.13.0</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"