To Set Up MUnit Maven Plugin (Maven)

For MUnit to run properly with Maven, you need to add a few sections to your pom.xml file.

This documentation assumes you have the <munit.version> property in your pom.xml.

  • Enable the MUnit Maven plugin, by adding the following section to your pom.xml.

    MUnit Maven Plugin
  • Finally, you need to add the MUnit Maven Plugin, and the MUnit Plugin repositories:

          <name>MuleSoft Releases Repository</name>
    Plugin Repositories
        <name>mulesoft release repository</name>

MUnit has Surefire support built in. No additional configuration is needed.
The reports can be found under target/surefire-reports.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub