问题展示 并且在maven窗口项目为灰色 原因是因为项目忽略了maven模块。 解决方法: file->Settings->Build,Execution,Deployment–>Build Tools->Maven–>Ignored Files 将被勾上的项目去掉就可了