问答详情
源自:2-4 Mybatis自动生成器使用方式

运行mybatis-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 (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


提问者:幻夜星空的幻灵 2019-03-07 10:07

个回答

  • 慕慕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>