把原来的模块从idea 中操作删除后 再创建 会显示灰色 如图: 修改 file -> settings --> build -->maven --> ignored files 勾选掉忽略的pom.xml即可