Eclipse keeps Building workspace... and Building workspace... and Building workspace
Turns out bug 27940 hasn't been fixed yet.
I use the following workaround:
- Disable "Project > Build Automatically"
- Project > Clean
- Project > Build All
Did you add your workspace to a Windows 7 library (i.e. the Windows Explorer Favorites or Windows Explorer Libraries)? Another user had a similar issue here.
If you have something open in a different editor (in the target directory of your project), this can also cause an infinite "Build Workspace" loop.
I solved it by opening my module's .project file. There were two redundant entries and deleting one helped:
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Sometimes it can also be caused by the following two entries from which you have to remove the older org.maven.ide
entry
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
</buildCommand>
It may also be that there are two identical natures:
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
or two natures from which one is old
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
<natures>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>
Just delete the redundant one or the old org.maven.ide.eclipse.maven2Nature