Maven Dependency


Of course, set the correct version - either set a property as in the example or edit it directly.


dbUnit releases are in Maven Central.


The Sonatype OSS snapshot repository has the dbUnit snapshots. To use it, define the repository:

  <name>Sonatype OSS Snapshots Repo</name>

Note: it is a better practice to add the repo to your artifact manager, such as Nexus, or define in settings.xml, rather than add the repo to a POM.

settings.xml How-To

Official Maven documentation on repositories in settings.xml:

Stack Overflow answer showing the Sonatype OSS Snapshot repo definition in settings.xml: