springboot mybatis-generator 生成代码

Mvn项目执行generator生成代码时出现异常,提示未找到'mybatis-generator'前缀的插件。网上多认为是配置问题,但此问题原因是generator在单一模块的pom里引用,需在命令行进入当前模块后再执行生成代码命令。
部署运行你感兴趣的模型镜像

 

mvn mybatis-generator:generate -e

mvn项目执行generator生成代码的时候,报了异常:No plugin found for prefix 'mybatis-generator' in the current project and in the plugin groups ...

[ERROR] No plugin found for prefix 'mybatis-generator' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/xxx/repository), alimaven (http://maven.aliyun.com/nexus/content/repositories/central/)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'mybatis-generator' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/xxx/repository), alimaven (http://maven.aliyun.com/nexus/content/repositories/central/)]
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve (DefaultPluginPrefixResolver.java:95)
    at org.apache.maven.lifecycle.internal.Mo

网上说的都是配置问题,我这个原因是我的generator是在单一模块的pom里引用的,所以得在命令行进入到当前模块,然后执行生成代码的命令:

cd 模块名
mvn mybatis-generator:generate -e

您可能感兴趣的与本文相关的镜像

Seed-Coder-8B-Base

Seed-Coder-8B-Base

文本生成
Seed-Coder

Seed-Coder是一个功能强大、透明、参数高效的 8B 级开源代码模型系列,包括基础变体、指导变体和推理变体,由字节团队开源

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值