原文地址:http://blog.csdn.net/xmuzidane/article/details/8706291
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>CreateHotWord</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.hibernate.HibernateBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
[color=red] <nature>com.genuitec.eclipse.hibernate.hibernatenature</nature>[/color]
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
加上红色的文字refresh一下即可解决。
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>CreateHotWord</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.hibernate.HibernateBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
[color=red] <nature>com.genuitec.eclipse.hibernate.hibernatenature</nature>[/color]
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
加上红色的文字refresh一下即可解决。