为了账号安全,请及时绑定邮箱和手机立即绑定

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


正在回答

3 回答

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

0 回复 有任何疑惑可以回复我~

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

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


0 回复 有任何疑惑可以回复我~

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>


0 回复 有任何疑惑可以回复我~
#1

weixin_慕容9545085

pom中jdbcConnection 显示红色下划线怎么改呢?
2019-03-09 回复 有任何疑惑可以回复我~
#2

幻夜星空的幻灵 提问者 回复 weixin_慕容9545085

确定一下你写pom的时候 版本用的和老师一样么
2019-03-14 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信