cannot resolved to a type after importing maven projects

I cloned one of the open source git repositories and was trying to import it as maven project in eclipse. After I imported everything as a maven project, whole package is getting messed up. See the below error:

enter image description here

How can I fix this issue so that I can build it on my local box? I cloned the same git repository locally on my desktop.

I am using eclipse version:

Eclipse IDE for Java Developers

Version: Luna Service Release 1a (4.4.1)
Build id: 20150109-0600

Steps I have tried already:

  • I have already tried maven->update project.
  • I have also tried removing and adding it again.
  • I tried mvn clean install both on command line and eclipse, they are successful as well.

Can anyone help me with this? If needed, you can also clone it and try importing it to see whether it works for you or not.


Source: eclipse

Leave a Reply