fastnate:import-data

Full name:

org.fastnate:fastnate-maven-plugin:1.6.0-SNAPSHOT:import-data

Description:

Creates an SQL file from all DataProvider.

Attributes:

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

Optional Parameters

Name Type Since Description
additionalSettings Map - Any additional settings for the EntitySqlGenerator, see GeneratorContext for an overview of available settings. Add a setting with: <setting_name>setting_value</setting_name>
changeDetector String - The implementation class of DataChangeDetector, to check if a changed file is relevant for SQL generation.
dataFolder File - The data folder for importers (e.g. to import CSV files).
Default value is: ${basedir}/src/main/data.
dialect String - The name of the database dialect.
encoding String - The encoding of the target and the prefix / postfix files.
Default value is: UTF-8.
packages String - The packages to scan for data providers.
postfix String - One or more SQL files in the data folder, or an SQL snippet itself - to put that after the generated SQL.
prefix String - One or more SQL files in the data folder, or an SQL snippet itself - to put that before the generated SQL.
relevantFiles String[] - A list of patterns for files which are monitored and start the generation when changed. See changeDetector for more complicated change detection. All patterns are relative to the "src" directory, as Eclipse Bug 508238 prevents patterns relative to the base directory.
skip boolean - Indicates to skip the execution of this plugin, even if it is configured for a phase.
sqlFile File - The path to the output file.
Default value is: ${project.build.outputDirectory}/data.sql.

Parameter Details

additionalSettings:

Any additional settings for the EntitySqlGenerator, see GeneratorContext for an overview of available settings. Add a setting with: <setting_name>setting_value</setting_name>
  • Type: java.util.Map
  • Required: No

changeDetector:

The implementation class of DataChangeDetector, to check if a changed file is relevant for SQL generation.
  • Type: java.lang.String
  • Required: No

dataFolder:

The data folder for importers (e.g. to import CSV files).
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/main/data

dialect:

The name of the database dialect.
  • Type: java.lang.String
  • Required: No

encoding:

The encoding of the target and the prefix / postfix files.
  • Type: java.lang.String
  • Required: No
  • Default: UTF-8

packages:

The packages to scan for data providers.
  • Type: java.lang.String
  • Required: No

postfix:

One or more SQL files in the data folder, or an SQL snippet itself - to put that after the generated SQL.
  • Type: java.lang.String
  • Required: No

prefix:

One or more SQL files in the data folder, or an SQL snippet itself - to put that before the generated SQL.
  • Type: java.lang.String
  • Required: No

relevantFiles:

A list of patterns for files which are monitored and start the generation when changed. See changeDetector for more complicated change detection. All patterns are relative to the "src" directory, as Eclipse Bug 508238 prevents patterns relative to the base directory.
  • Type: java.lang.String[]
  • Required: No

skip:

Indicates to skip the execution of this plugin, even if it is configured for a phase.
  • Type: boolean
  • Required: No

sqlFile:

The path to the output file.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.outputDirectory}/data.sql