Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse not recognizing imports in same project

From time to time, Eclipse (Indigo) complains that certain classes in my projects cannot be resolved to a type. Even it shows the class in popup list, clicking import (see image) does not add the import statement! Even if I add it manually, it doesn't recognize it (and underlines the import package).

  • This happens only in certain projects.
  • Unresolved types are in the same project! (not in other dependencies)
  • cleaning the project does resolve this, but only temporarily.
  • My application consists of multi-module maven based projects.
  • All projects are maven-based.

Not recognizing imports

like image 580
MoneerOmar Avatar asked Oct 31 '25 13:10

MoneerOmar


1 Answers

Right click on your project name ->Maven ->Update Project

like image 110
Claudiu-Florin Stroe Avatar answered Nov 02 '25 05:11

Claudiu-Florin Stroe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!