[INFO] --- mybatis-generator-maven-plugin:1.3.5:generate (default-cli) @ miaosha ---

来源:2-4 Mybatis自动生成器使用方式

qq_罪名_1

2019-01-15 15:50

https://img1.mukewang.com/5c3d909900015cfc17740480.jpg

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.230 s

[INFO] Finished at: 2019-01-15T15:44:15+08:00

[INFO] Final Memory: 14M/37M

[INFO] ------------------------------------------------------------------------

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

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException


Process finished with exit code 1



这里出错是怎么回事呀

写回答 关注

2回答

  • dusty_z
    2019-01-15 16:52:40
    已采纳

    mybatis-generator.xml文件配置错误导致的,把配置文件中所有带db2java的字段都替换成你自己的工程目标路径即可

    dusty_... 回复qq_罪名_...

    效果是一样的,那个是DB2的数据库,这个项目用的是MySQL,所以报错

    2019-01-15 20:50:11

    共 2 条回复 >

  • dusty_z
    2019-01-15 16:56:21

    mybatis-generator.xml文件配置错误导致的,把配置文件中所有带db2java的字段都替换成你自己的工程目标路径即可

SpringBoot构建电商基础秒杀项目

应用SpringBoot快速搭建拥有用户、商品、交易及秒杀活动的电商秒杀应用。

49064 学习 · 954 问题

查看课程

相似问题