進入window下面的show view點擊Navigator找到.project文件在里面添加如下代碼即可劲装,根本原因暫時沒有找到
<buildSpec>
? ? ? ? ? <buildCommand>
? ? ? ? ? ? ? <name>org.eclipse.jdt.core.javabuilder</name>
? ? ? ? ? ? ? <arguments>
? ? ? ? ? ? ? </arguments>
? ? ? ? ? </buildCommand>
? ? ? ? ? <buildCommand>
? ? ? ? ? ? ? <name>org.eclipse.m2e.core.maven2Builder</name>
? ? ? ? ? ? ? <arguments>
? ? ? ? ? ? ? </arguments>
? ? ? ? ? </buildCommand>
? ? </buildSpec>
? ? <natures>
? ? ? ? ? <nature>org.eclipse.jdt.core.javanature</nature>
? ? ? ? ? <nature>org.eclipse.m2e.core.maven2Nature</nature>
? ? </natures>