Plugin Details
This report describes goals, parameters details, requirements and sample usage of this plugin.
Goals
Goals available for this plugin:
| Goal | Description |
|---|---|
| dbunit:compare | Execute DbUnit Compare operation. |
| dbunit:export | Execute DbUnit Export operation. |
| dbunit:export-dtd | Execute DbUnit Export DTD operation. Exports a flat DTD schema from the connected database, with tables ordered by foreign key constraints. The generated DTD can be used to validate flat XML dataset files and to enable IDE auto-completion. |
| dbunit:help | Display help information on dbunit-maven-plugin.
Call mvn dbunit:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. |
| dbunit:operation | Execute DbUnit's Database Operation with an external dataset file. |
System Requirements
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 2.0 |
| JDK | 17 |
System Requirements History
The following specifies the minimum requirements to run this Maven plugin for historical versions:
| Plugin Version | Maven | JDK |
|---|---|---|
| 1.3.0 | 2.0 | 8 |
| from 1.1.0 to 1.2.0 | 2.0 | ${project.build.java.target} |
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>org.dbunit</groupId>
<artifactId>dbunit-maven-plugin</artifactId>
<version>1.3.1-SNAPSHOT</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.dbunit</groupId>
<artifactId>dbunit-maven-plugin</artifactId>
</plugin>
...
</plugins>
</build>
...
</project>
For more information, see "Guide to Configuring Plug-ins"


