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

mybatis-generator自动生成代码出错

http://img1.sycdn.imooc.com//5da9a997000156f119201039.jpg

错误信息如下:

[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.24.215] failed: Connection timed out: connect

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 32.263 s

[INFO] Finished at: 2019-10-18T19:56:55+08:00

[INFO] Final Memory: 22M/221M

[INFO] ------------------------------------------------------------------------

[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\Oscar.Li\.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


Process finished with exit code 1


正在回答

2 回答

我也一样

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

举报

0/150
提交
取消
SpringBoot构建电商基础秒杀项目
  • 参与学习       49020    人
  • 解答问题       954    个

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

进入课程

mybatis-generator自动生成代码出错

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