Maven 3 and JUnit 4 compilation problem: package org.junit does not exist
Just to have an answer with the complete solution to help the visitors: All you need to do is add the junit dependency to pom.xml. Don’t forget the <scope>test</scope> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency>