I\'ve imported this project before, with no difficulty before. I\'m not sure what has changed.
I click Import Project
and selected getting-started-wi
I have a project in Eclipse.
Make sure that if JUnit is declared as <scope>test</scope>
, that your test class is in src/test
, otherwise it won't be able to see the dependency.
Make sure that you can compile the project through Maven (that is, via command line) through mvn clean compile
.
If that generates errors, be sure that you have the junit dependency properly scoped in the POM.
If that doesn't generate errors, then it's IntelliJ that doesn't know where the new libraries are.
To fix that, simply go to the Maven Projects tab in the main window, and hit the "Generate Sources and Update Folders for All Projects" button. Then, hit "Reimport All Maven Projects", which is next to the previous button.