• 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 


    作者:习惯沉淀

    如果文中有误或对本文有不同的见解,欢迎在评论区留言。

    如果觉得文章对你有帮助,请点击文章右下角【推荐】一下。您的鼓励是博主的最大动力!

    扫码关注一线码农的学习见闻与思考。

    回复"大数据","微服务","架构师","面试总结",获取更多学习资源!
  • 相关阅读:
    什么是ORM
    ORM优缺点
    Azure 中快速搭建 FTPS 服务
    连接到 Azure 上的 SQL Server 虚拟机(经典部署)
    在 Azure 虚拟机中配置 Always On 可用性组(经典)
    SQL Server 2014 虚拟机的自动备份 (Resource Manager)
    Azure 虚拟机上的 SQL Server 常见问题
    排查在 Azure 中新建 Windows 虚拟机时遇到的经典部署问题
    上传通用化 VHD 并使用它在 Azure 中创建新 VM
    排查在 Azure 中新建 Windows VM 时遇到的部署问题
  • 原文地址:https://www.cnblogs.com/yadongliang/p/15020050.html
Copyright © 2020-2023  润新知