Description: Eclipse can not build the project, because project is missing default builder. It happens most of the time when checking out project from SVN or CVS.
Solution: You need to add the default Java builder into .project file.
Verify that following lines are present in .project file of the eclipse project. If it is not present in the file, copy it from here and save the file.
Adding default Java builder
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
That’s it! select the Java builder from project propertiese > builder, clean and build the project again. you should be able to build the project now.
calandale
/ December 22, 2010That’s great and all, but what is the root cause?
I’d rather not have to tweak projects that m2eclipse should be able to provision.
KevinO
/ May 25, 2011Worked perfectly, thanks. Just a note, you have to restart Eclipse to get this to take.
AlanD
/ June 27, 2011Eclipse restart isn’t strictly necessary. Close the project, update the .project file, and then open the project. That will do the job.