Goals

GoalDescription
dbunitGenerate dataset and DTD for connection.
dbunit:delete-datasetDelete a dbunit dataset for a connection.
dbunit:export-xls Create a spreadsheet in target/dbunit/export.xls from a set of tables. Specify a variable called tables as a comma separated list of tables to export, or leave it blank for all.
dbunit:flat2xml Convert a flat XML file, specified by the variable input into an XML file specified by the variable output. Both input and output variables are file names.
dbunit:generate-datasetGenerate a dbunit dataset for a connection.
dbunit:generate-dtdGenerate a dbunit dtd for a connection.
dbunit:import-datasetImport a dbunit dataset.
dbunit:import-xls

Import a spreadsheet specified by the file variable into a set of tables.

You can also specify the type of import via the maven.dbunit.importType variable, which means that this goal can be used for deleting data, updating data etc.

dbunit:xls2xml Convert an Excel spreadsheet, specified by the variable input into an XML file specified by the variable output. Both input and output variables are file names.
dbunit:xml2flat Convert an XML file, specified by the variable input into a flat XML file specified by the variable output. Both input and output variables are file names.
dbunit:xml2xls Convert an XML formatted dataset, specified by the variable input into a spreadsheet (xls file) specified by the variable output. Both input and output variables are file names.