pom.xml横线

file >>> settings >>> Build,Execution,Deployment >>> Build Tools >>> Maven >>> Ignored Files

右边带勾的取消,然后应用即可!