解决:[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generat

mybatis-generator整合通用mapper使用generator插件生成model、mapper时报错:

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate (default-cli) on project forum: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate failed: Cannot resolve classpath entry: /Program Files/IBM/SQLLIB/java/db2java.zip -> [Help 1]

解决:[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generat_第1张图片

原因一:
填写驱动位置,或者删掉classpathentry
解决:[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generat_第2张图片
https://blog.csdn.net/l3922768721/article/details/79914601

 <classPathEntry location="/Program Files/IBM/SQLLIB/java/db2java.zip" />

原因二:
prom.xml,generator中关于数据库驱动版本不一致。

https://blog.csdn.net/zk673820543/article/details/52512055


希望大家多多补充

你可能感兴趣的:(Mybatis)