neo4j-migrations:validate

Full name:

eu.michael-simons.neo4j:neo4j-migrations-maven-plugin:1.13.0:validate

Description:

Calling Migrations.validate() during verify phase.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 1.2.0.
  • Binds by default to the lifecycle phase: verify.

Required Parameters

Name Type Since Description
<address> URI 1.2.0 The address this migration should connect to. The driver supports bolt, bolt+routing or neo4j as schemes.
Default value is: bolt://localhost:7687.
<password> String 1.2.0 The password of the user connecting to the database.
<user> String 1.2.0 The login of the user connecting to the database.
Default value is: neo4j.

Optional Parameters

Name Type Since Description
<alwaysFail> boolean 1.2.0 Set this to false if the database can be brought into a valid state by just applying the configuration
Default value is: true.
<database> String 1.2.0 The database that should be migrated (Neo4j EE 4.0+).
<impersonatedUser> String 1.2.0 An alternative user to impersonate during migration. Might have higher privileges than the user connected, which will be dropped again after migration. Requires Neo4j EE 4.4+. Leave null for using the connected user.
<locationsToScan> String[] 1.2.0 Location to scan. Repeat for multiple locations.
Default value is: file://${project.build.outputDirectory}/neo4j/migrations.
<packagesToScan> String[] 1.2.0 Package to scan. Repeat for multiple packages.
<schemaDatabase> String 1.2.0 The database that should be used for storing informations about migrations (Neo4j EE 4.0+).
<transactionMode> MigrationsConfig$TransactionMode 1.2.0 The transaction mode to use.
Default value is: PER_MIGRATION.
<verbose> boolean 1.2.0 Log the configuration and a couple of other things.
Default value is: false.

Parameter Details

<address>

The address this migration should connect to. The driver supports bolt, bolt+routing or neo4j as schemes.
  • Type: java.net.URI
  • Since: 1.2.0
  • Required: Yes
  • Default: bolt://localhost:7687

<alwaysFail>

Set this to false if the database can be brought into a valid state by just applying the configuration
  • Type: boolean
  • Since: 1.2.0
  • Required: No
  • Default: true

<database>

The database that should be migrated (Neo4j EE 4.0+).
  • Type: java.lang.String
  • Since: 1.2.0
  • Required: No

<impersonatedUser>

An alternative user to impersonate during migration. Might have higher privileges than the user connected, which will be dropped again after migration. Requires Neo4j EE 4.4+. Leave null for using the connected user.
  • Type: java.lang.String
  • Since: 1.2.0
  • Required: No

<locationsToScan>

Location to scan. Repeat for multiple locations.
  • Type: java.lang.String[]
  • Since: 1.2.0
  • Required: No
  • Default: file://${project.build.outputDirectory}/neo4j/migrations

<packagesToScan>

Package to scan. Repeat for multiple packages.
  • Type: java.lang.String[]
  • Since: 1.2.0
  • Required: No

<password>

The password of the user connecting to the database.
  • Type: java.lang.String
  • Since: 1.2.0
  • Required: Yes

<schemaDatabase>

The database that should be used for storing informations about migrations (Neo4j EE 4.0+).
  • Type: java.lang.String
  • Since: 1.2.0
  • Required: No

<transactionMode>

The transaction mode to use.
  • Type: ac.simons.neo4j.migrations.core.MigrationsConfig$TransactionMode
  • Since: 1.2.0
  • Required: No
  • Default: PER_MIGRATION

<user>

The login of the user connecting to the database.
  • Type: java.lang.String
  • Since: 1.2.0
  • Required: Yes
  • Default: neo4j

<verbose>

Log the configuration and a couple of other things.
  • Type: boolean
  • Since: 1.2.0
  • Required: No
  • Default: false