如题所示,使用eclipse开发,在项目pom.xml中加入quasar-maven-plugin插件,报错:
Plugin execution not covered by lifecycle configuration: com.vlkan:quasar-maven-plugin:0.7.3:instrument (execution: default, phase: process-classes)
项目报红叉:
解决办法有两种,一种是在plugin标签外面加上一层<pluginManagement>,如下,可以解决报错问题。
另外一种办法就是在lifecycle-mapping-metadata.xml配置文件中增加对quasar-meven-plugin的支持:具体操作是Windows->Preferences->Maven->Lifecycle mappings->Open workspace lifecycle mappings metadata,在打开的文件中增加类似如下配置即可。
添加完成之后保存,然后再次打开Window->Preferences->Maven->Lifecycle Mappings,点击按钮:Reload workspace lifecycle mappings metadata。最后回到工程,右键->Maven->Update Project。
项目报红叉错误解决:
注意:采用第二种方式解决时,需要配置的内容,需要根据自己的项目报错来配置。不能照抄本次配置,除非巧合。