• 0.10.2

jcabi-mysql:run

Full name:

com.jcabi:jcabi-mysql-maven-plugin:0.10.2:run

Description:

Run MySQL in background and don't stop it when Maven is finished.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 0.4.
  • Binds by default to the lifecycle phase: pre-integration-test.

Required Parameters

Name Type Since Description
<data> File 0.4 Location of MySQL data.
Default value is: ${project.build.directory}/mysql-data.
<dist> File 0.4 Location of MySQL distribution.
Default value is: ${project.build.directory}/mysql-dist.

Optional Parameters

Name Type Since Description
<dbname> String 0.4 Database name to use.
Default value is: root.
<erase> boolean 0.4 Shall we always delete an existing database or reuse it?
Default value is: true.
<options> List 0.4 Configuration options.
<password> String 0.4 Password to use.
Default value is: root.
<port> int 0.4 Port to use.
Default value is: 3306.
<skip> boolean 0.4 Shall we skip execution?
Default value is: false.
<socket> File 0.4 Override location of MySQL socket file. Defaults to (data dir)/mysql.socket.
<user> String 0.4 Username to use.
Default value is: root.

Parameter Details

<data>

Location of MySQL data.
  • Type: java.io.File
  • Since: 0.4
  • Required: Yes
  • Default: ${project.build.directory}/mysql-data

<dbname>

Database name to use.
  • Type: java.lang.String
  • Since: 0.4
  • Required: No
  • Default: root

<dist>

Location of MySQL distribution.
  • Type: java.io.File
  • Since: 0.4
  • Required: Yes
  • Default: ${project.build.directory}/mysql-dist

<erase>

Shall we always delete an existing database or reuse it?
  • Type: boolean
  • Since: 0.4
  • Required: No
  • Default: true

<options>

Configuration options.
  • Type: java.util.List
  • Since: 0.4
  • Required: No

<password>

Password to use.
  • Type: java.lang.String
  • Since: 0.4
  • Required: No
  • Default: root

<port>

Port to use.
  • Type: int
  • Since: 0.4
  • Required: No
  • Default: 3306

<skip>

Shall we skip execution?
  • Type: boolean
  • Since: 0.4
  • Required: No
  • Default: false

<socket>

Override location of MySQL socket file. Defaults to (data dir)/mysql.socket.
  • Type: java.io.File
  • Since: 0.4
  • Required: No

<user>

Username to use.
  • Type: java.lang.String
  • Since: 0.4
  • Required: No
  • Default: root