解决方法1 多模块情况: (1)root pom.xml --> Click Maven – Unlink:移除所有子模块 (2)root pom.xml --> Add As Maven project