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,025
  • 2
  • 16
  • 40

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,129,465
  • 480
  • 4,036
  • 4,755
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
  • 740
  • 2
  • 9
  • 24