mybatis逆向生成代码 [ERROR] No plugin found for prefix 'mybatis-generator' in the current project and in the plugin groups

 


前言

down了一个项目mybatis逆向生成代码时出现如下错误

[ERROR] No plugin found for prefix 'mybatis-generator' in the current project and in the plugin groups [com.bkjf.commons.plugins, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (F:\maven-repository), nexus (http://nexus.ehomepay.com.cn/nexus/content/groups/public)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'mybatis-generator' in the current project and in the plugin groups [com.bkjf.commons.plugins, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (F:\maven-repository), nexus (http://nexus.ehomepay.com.cn/nexus/content/groups/public)]

解决步骤

1. 引入依赖

<!-- mybatis-generator -->
<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator-maven-plugin</artifactId>
    <version>1.3.5</version>
</dependency>

 

2.引入mybatis-generator插件

复制代码
<plugin>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator-maven-plugin</artifactId>
    <version>1.3.5</version>
    <configuration>
        <verbose>true</verbose>
        <overwrite>true</overwrite>
        <configurationFile>${basedir}/src/main/resources/mybatis-generatorConfig.xml</configurationFile>
    </configuration>
</plugin>
复制代码

 

另: mybatis-generator:generate -e 

posted @   习惯沉淀  阅读(1914)  评论(0编辑  收藏  举报
编辑推荐:
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
历史上的今天:
2020-07-16 MySQL数据库”mysql SQL Error:1146,SQLState:42S02 “解决方法
2020-07-16 HTTP 400 Bad request 原因
2020-07-16 ORA-00917: 缺失逗号 Oracle插入数据
2020-07-16 关于oracle sql语句查询时表名和字段名要加双引号的问题
2020-07-16 java.sql.SQLSyntaxErrorException: ORA-00932: 数据类型不一致: 应为 BINARY, 但却获得 CHAR
2018-07-16 Netty-gRPC介绍和使用
2018-07-16 分布式高并发系统如何保证对外接口的幂等性?
点击右上角即可分享
微信分享提示