eclipse stuck when building workspace

Some time it's very helpful to execute eclipse from command line with "-clean" parameter to enforce it produce clean up for workspace.


I was able to fix this with the following:

First, exit Eclipse. Then temporarily move the following .projects folder to a safe location:

mv .metadata\.plugins\org.eclipse.core.resources\.projects projects

Start and exit Eclipse, then move the .projects folder back to where it was originally:

mv projects .metadata\.plugins\org.eclipse.core.resources\.projects

Use at your own risk, of course.


eclipse -clean did not work but following did

eclipse -clean -clearPersistedState