Reputation: 1005
my maven project includes junit and builds including running the tests on the command line with maven. However eclipse claims that the package can not be found, I don't understand why eclipse would ignore the dependency.
I am depending on version 4.12 of junit
Upvotes: 0
Views: 366
Reputation: 2924
Right-click on the project, then use Maven
>Update Project...
to get the build path settings in sync with the pom.xml
.
Upvotes: 1
Reputation: 16431
Please check the version of junit in the pom.xml. The 3.x version is programmed and 4.x is the annotation method.
Upvotes: 0