运行mybatis-generator时报No plugin found for prefix 'mybatis-generator' in the current project and in the plugin groups的错

来源:2-4 Mybatis自动生成器使用方式

幻夜星空的幻灵

2019-03-07 10:07

[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 (C:\Users\Administrator\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException


写回答 关注

3回答

  • 慕慕23456
    2021-01-15 16:59:23

    请问解决了吗,我这样做也还是这样?

  • 幻夜星空的幻灵
    2019-03-08 16:20:00

    同事还要改application.properties里的文件

    spring.datasource.url=jdbc:mysql://127.0.0.1:3306/miaosha?serverTimezone=GMT&useSSL=false


  • 幻夜星空的幻灵
    2019-03-07 18:44:24

    mysql版本不一致  要改pom和mybatis-generator.xml中的部分内容

    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <version>8.0.13</version>
    </dependency>
    <jdbcConnection driverClass="com.mysql.jdbc.Driver"
                    connectionURL="jdbc:mysql://127.0.0.1:3306/miaosha?serverTimezone=GMT&amp;useSSL=false"
                    userId="root"
                    password="root">
    </jdbcConnection>


    幻夜星空的幻... 回复weixin...

    确定一下你写pom的时候 版本用的和老师一样么

    2019-03-14 14:01:07

    共 2 条回复 >

SpringBoot构建电商基础秒杀项目

应用SpringBoot快速搭建拥有用户、商品、交易及秒杀活动的电商秒杀应用。

49064 学习 · 954 问题

查看课程

相似问题