利用mybatis-generator自动生成代码,发生:Plugin execution not covered by lifecycle configuration后解决方案

时间:2023-03-09 07:04:01
利用mybatis-generator自动生成代码,发生:Plugin execution not covered by lifecycle configuration后解决方案

1,报错信息

Plugin execution not covered by lifecycle configuration: org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (execution: Generate MyBatis Artifacts, phase: generate-sources)

利用mybatis-generator自动生成代码,发生:Plugin execution not covered by lifecycle configuration后解决方案

利用mybatis-generator自动生成代码,发生:Plugin execution not covered by lifecycle configuration后解决方案

2,解决方案

在POM配置文件的plugins标签上包装pluginManagement标签即可

利用mybatis-generator自动生成代码,发生:Plugin execution not covered by lifecycle configuration后解决方案