generator-config.xml运行错误

来源:3-5 集成Mybatis官方代码生成器

逆天而行Gavin

2022-01-05

图片描述
图片描述
以下是全部的运行信息

/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/renzilong/Desktop/java代码/项目/SpringBoot+Vue3知识库系统 -Dmaven.home=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3 -Dclassworlds.conf=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/m2.conf -Dmaven.ext.class.path=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven-event-listener.jar -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=64098:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds.license:/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version=2021.2.2 -s /Users/renzilong/Desktop/java代码/xml/settings.xml mybatis-generator:generate -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.jiawa:wiki:jar:0.0.1-SNAPSHOT
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] ---------------------------< com.jiawa:wiki >---------------------------
[INFO] Building wiki 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- mybatis-generator-maven-plugin:1.4.0:generate (default-cli) @ wiki ---
[INFO] Connecting to the Database
[INFO] Introspecting table ebook_snapshot
[WARNING] Table configuration with catalog null, schema null, and table ebook_snapshot did not resolve to any tables
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.224 s
[INFO] Finished at: 2022-01-05T13:30:32+08:00
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0

退回2-4的版本重新跟了一遍,还是同样的报错

已经解决
是文件的路径问题,把斜杠反过来后成功生成

写回答

1回答

甲蛙

2022-01-06

没用过mac,有几位同学反馈mac需要把斜杠反过来

0
1
逆天而行Gavin
非常感谢!
2022-01-08
共1条回复

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2524 学习 · 1671 问题

查看课程