解决方法
先转为非maven项目:右键工程——>maven——>DISABLE maven nature
再转为 maven项目:右键工程——>configure——>convert to maven project