Imported Maven project can't find JUnit or Mockito artifacts, but builds from maven [message #1807217] |
Fri, 24 May 2019 13:30  |
Eclipse User |
|
|
|
I have a SpringBoot app, among many other similar projects, that builds fine from the command line with maven, including all of the tests. When I import this particular project from my git repo, it seems to be unable to find my JUnit and Mockito artifacts, so all of the test classes fail to compile. There are no red marks in the pom.xml file. I can find both junit and mockito in the "Dependency Hierarchy" view, and also in the effective pom.
I've tried doing "Update Project". No change. I've tried deleting the project and reimporting from git. No change.
I've tried comparing the generated .classpath and .project files with similar projects that don't have this problem. There are minor differences, almost all just properties in a different order in an element.
What else can I look for?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27910 seconds