eclipse source folder is not java project, after importing project from git

Viewed 4224

I have imported project from git and after that converted that into a maven project.

but while trying to add any class or package in my source folder I am getting an error source folder is not java project and also ctrl+space is not working.

I have also tried in my repo mvn eclipse:eclipse but that also hasn't worked.

2 Answers

If you've already specified the src folder and it's not working, try right-clicking on project -> maven->Update Project...

Then check 'force update of snapshots/releases' box and click ok.

This should clear any problems resulting from old branches in eclipse.

Related