详细配置:https://gitee.com/free/Mybatis_Utils/blob/master/MybatisGeneator/MybatisGeneator.md
点击自动生成时报错1:https://blog.csdn.net/qq_32370913/article/details/106575758
点击自动生成时报错2:https://blog.csdn.net/I9pinx/article/details/79818881
报错3:
Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate (default-cli) on project jerusalem-lifetree-lpc-service: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate failed: Cannot instantiate object of type com.itfsw.mybatis.generator.plugins.LombokPlugin
报错4:
maven打包报错:spring-boot-maven-plugin:2.0.1.RELEASE:repackage failed: Unable to find main class
https://blog.csdn.net/sinat_38570489/article/details/89501813
报错5 :多模块引用报错问题
Failed to execute goal on project xxx-service: Could not resolve dependencies for project
Failed to execute goal on project xxx-service: Could not resolve dependencies for project com.xxx:xxx-service:jar:1.0.0: Failed to collect dependencies at com.yyy:yyy-facade:jar:1.0.0: Failed to read artifact descriptor for com.yyy:yyy-facade:jar:1.0.0: Failure to find com.yyy:yyy:pom:1.0.0
原因:
子项目引用了父项目的POM,但没有在父项目POM目录下执行安装操作(父目录下执行mvn install),这个问题就会出现。当一个子模块可能会依赖一个兄弟子模块而且去读取兄弟子模块的pom时,除非在父项目POM目录下至少执行一次安装,否则就会读取失败,即出现上述错误。
报错六:
Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate failed: Cannot instantiate object of type .MysqlCommentGenerator
修复:根据此文档修改后,报错消失