AnOldSoul
AnOldSoul

Reputation: 4207

Unable to resolve a class within the same package after integrating with maven

I have converted my project into maven. But the test classes are throwing errors saying that they can't resolve the classes. But the classes to be resolved are within the same package! Below is my project structure.

enter image description here

As shown in the image below it shows errors saying it can't resolve but when I hover over the error I do get the suggestion to import. When I click on the suggestion nothing happens.

enter image description here

Why is this happening? Please advice.

Upvotes: 0

Views: 807

Answers (1)

Sainik Kumar Singhal
Sainik Kumar Singhal

Reputation: 811

You can also try mvn eclipse:clean eclipse:eclipse on your project and after it refresh the project in eclipse.

Upvotes: 1

Related Questions