在利用 mybatis 生成對應數據庫的映射的時候,報錯信息如下:
1 [ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate (default-cli) on project miaosha: 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] 2 [ERROR] 3 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 4 [ERROR] Re-run Maven using the -X switch to enable full debug loggin
解決方法:注釋掉從官方文檔復制的
1 <classPathEntry location="/Program Files/IBM/SQLLIB/java/db2java.zip" />