Could not find goal ‘generator‘ in plugin org.mybatis.generator

官方文档参考:

MyBatis Generator Core -- Running MyBatis Generator With Maven

java 复制代码
mysql 中数据表创建后,使用BGM 逆向生成mybatis 相关文件

执行命令:
mvn mybatis-generator:generator

如果报错如下:
[ERROR] Could not find goal 'generator' in plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7 among available goals generate, help -> [Help 1]


需要更换如下命令 
项目下执行:
mvn -Dmybatis.generator.overwrite=true mybatis-generator:generate

过程log:
...
[INFO] Generating Example class for table tfts_tcdb_nre
[INFO] Generating Record class for table tfts_tcdb_nre
[INFO] Generating Mapper Interface for table tfts_tcdb_nre
[INFO] Generating SQL Map for table tfts_tcdb_nre
...
[INFO] Saving file TftsTcdbNreMapper.xml  // 生成于 ~/src/resource/.../mapper
....
[INFO] Saving file TftsTcdbNreExample.java  // 生成于 ~/src/main/.../po
[INFO] Saving file TftsTcdbNre.java  // 生成于 ~/src/main/.../po
[INFO] Saving file TftsTcdbNreMapper.java  // 生成于 ~/src/main/.../mapper
.....
相关推荐
W.Y.B.G2 分钟前
JavaScript 计算闰年方法
开发语言·前端·javascript
Excuse_lighttime3 分钟前
只出现一次的数字(位运算算法)
java·数据结构·算法·leetcode·eclipse
liu****4 分钟前
笔试强训(二)
开发语言·数据结构·c++·算法·哈希算法
艾菜籽28 分钟前
Spring Web MVC入门补充1
java·后端·spring·mvc
失散1335 分钟前
分布式专题——44 ElasticSearch安装
java·分布式·elasticsearch·架构
krielwus36 分钟前
Oracle OMF 配置文档
数据库·oracle
无限进步_41 分钟前
扫雷游戏的设计与实现:扫雷游戏3.0
c语言·开发语言·c++·后端·算法·游戏·游戏程序
qq_433554541 小时前
C++ 完全背包
开发语言·c++·算法
青铜弟弟1 小时前
R语言利用Export包导出pptx格式的文件有错误的原因
开发语言·r语言