问答详情
源自:2-3 Mybatis接入SpringBoot项目

mybatis-generator自动生成代码出错

http://img2.mukewang.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


提问者:慕运维5115176 2019-10-18 20:02

个回答

  • 慕桂英0379152
    2019-11-03 20:52:51

    我也一样