Plugin Documentation

Goals available for this plugin:

Goal Description
testdb:clean The stop all containers that were previously started and delete the test provider config file.
testdb:help Display help information on testdb-maven-plugin.
Call mvn testdb:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
testdb:pool The pool operation will setup a new test database pool. After this step the provider daemon will automatically populate the database with copies from the template database and allow tests to allocate databases.
testdb:start The start operation will provide the needed testdatabase provider daemon and optionally also a database which will automatically be configured to work in conjunction with the started daemon.
testdb:stop The stop operation will terminate previously started databases and the testdatabase provider daemon container.

System Requirements

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

Maven 3.9.0
JDK 17

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>io.metaloom.maven</groupId>
          <artifactId>testdb-maven-plugin</artifactId>
          <version>0.1.4</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>io.metaloom.maven</groupId>
        <artifactId>testdb-maven-plugin</artifactId>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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