为了账号安全,请及时绑定邮箱和手机立即绑定

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

https://img1.sycdn.imooc.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 回答

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

1 回复 有任何疑惑可以回复我~
#1

qq_罪名_1 提问者

我注释掉就可以了
2019-01-15 回复 有任何疑惑可以回复我~
#2

dusty_z 回复 qq_罪名_1 提问者

效果是一样的,那个是DB2的数据库,这个项目用的是MySQL,所以报错
2019-01-15 回复 有任何疑惑可以回复我~

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

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信