4

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.

Ravat Tailor
  • 1,193
  • 3
  • 20
  • 44

2 Answers2

3

If mvn eclipse:eclipse does not work, you can try and specify manually the src folder, which will be recorded in the .project.

Check first if "Convert to Faceted Form" / Java would be enough.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

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.

MRDJR97
  • 818
  • 2
  • 10
  • 27