Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Imported Maven project can't find JUnit or Mockito artifacts, but builds from maven
Imported Maven project can't find JUnit or Mockito artifacts, but builds from maven [message #1807217] Fri, 24 May 2019 13:30 Go to next message
Eclipse UserFriend
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?
Re: Imported Maven project can't find JUnit or Mockito artifacts, but builds from maven [message #1807219 is a reply to message #1807217] Fri, 24 May 2019 14:41 Go to previous messageGo to next message
Eclipse UserFriend
Did you install m2e?

https://www.eclipse.org/m2e/

JDT knows nothing about POMs and provides no support for anything to do with such things, so you must have installed something else (or have something else installed) so you will be best off to post to a forum related to that technology. Likely m2e...
Re: Imported Maven project can't find JUnit or Mockito artifacts, but builds from maven [message #1807220 is a reply to message #1807219] Fri, 24 May 2019 15:03 Go to previous message
Eclipse UserFriend
Yes, m2e is installed. This is just one project among several, all configured similarly, all of which work perfectly fine in Eclipse.

Guess I'm going to StackOverflow. m2e user list is sparse.
Previous Topic:Eclipse project build automation
Next Topic:Strange characters in Eclipse Terminal
Goto Forum:
  


Current Time: Wed Jul 16 12:42:30 EDT 2025

Powered by FUDForum. Page generated in 0.27910 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top