Maven dependency not being pulled in for JUnit 5 with Spring Boot 2.5.6
I'm stuck trying to I'm having trouble getting JUnit 5 to work with my Spring Boot application using Maven. I've specified the dependencies in my `pom.xml`, but it seems that Maven is not pulling in the JUnit 5 artifacts correctly. My `pom.xml` includes the following dependencies: ```xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>2.5.6</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <version>5.7.2</version> <scope>test</scope> </dependency> ``` When I run `mvn test`, I get the following behavior: ``` [behavior] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project my-project: There are test failures. ``` I checked the Surefire plugin version and it seems to be up to date. However, when I look at the build output, it shows that the JUnit 4 dependency is being included instead: ``` [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ my-project --- [INFO] Tests are skipped. ``` I've also tried cleaning the project with `mvn clean` and updating the dependencies with `mvn dependency:resolve`, but that didn’t help. I suspect there might be a conflict somewhere or perhaps an scenario with the scope of the dependencies. Have I configured something incorrectly? What can I do to ensure JUnit 5 is being used for testing instead of JUnit 4? I'm working on a microservice that needs to handle this. Thanks for any help you can provide!