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/.
Report bugs and request enhancements at https://github.com/dbunit/dbunit-maven-plugin/issues.
For questions, ideas, or want to get involved, start a discussion at https://github.com/dbunit/dbunit-maven-plugin/discussions.
We are a small team working on improvements and issues along the way and need more help — we will gladly help you as needed with your ideas and contributions and look to add you as a committer when ready.