解决eclipse的pom.xml文件execution标签报错的问题

项目没有错误,但是maven中pom.xml有红叉,错误处提示Plugin execution not covered by lifecycle configuration: com.github.kongchen:swagger-maven-plugin:3.1.0:generate (execution: default, phase: compile)
解决方法:
在windows->Preferences->Maven->Error/Warnings下Ignore掉这个 plugin execution错误,如下图:
解决eclipse的pom.xml文件execution标签报错的问题