Setting up JUnit 5 with Maven

Learn step-by-step instructions to set up JUnit 5 with Maven.

In the previous lesson, we learned how to set up JUnit 5 using IntelliJ IDEA. However, a better practice is to manage our project dependencies and library with a more viable tool like Maven/Gradle.

In this lesson, we’ll learn how to add the JUnit 5 dependency to our project using Maven.

Create Maven project in IntelliJ

Let’s start off by learning to create a simple Maven project in IntelliJ.

Below are the steps to create a Maven Project in IntelliJ:

  • In the IDE, click “File”-> “New”-> “Project.”

  • In the “New Project” window, select the “Maven option and click on the “Next" button.

Get hands-on with 1400+ tech skills courses.