A Maven plugin that runs dbUnit database operations as build goals. It delegates the actual database work to dbunit-core via its Ant task API, making it easy to set up, tear down, export, and verify database state as part of your Maven build lifecycle.
-
dbunit:operation— RunINSERT,UPDATE,DELETE,REFRESH(upsert),CLEAN_INSERT, and other composable operations from one or more dataset files. -
dbunit:export— Export table contents, filtered by table or custom query, to a dataset file (XML, flat XML, CSV, XLS, or YAML). -
dbunit:compare— Compare current database contents against a reference dataset file. -
dbunit:export-dtd— Export a flat DTD schema ordered by foreign key constraints, for dataset validation and IDE auto-completion.
The full documentation site, including the goal reference, examples, and the FAQ, is at https://dbunit.github.io/dbunit-maven-plugin/.