在使用mybatis-generator生成****是报了错,错误如下:
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 (http://repo.maven.apache
解决办法:
使用mybatis-generator-maven-plugin的错误解决办法
如上图的参数注意是否已经配置,我是因为没有看法哦最下面的maven runtime需要配置一下maven的程序,配置好后就执行成功了:
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building atcrowdfunding06-common-reverse 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — mybatis-generator-maven-plugin:1.3.0:generate (default-cli) @ atcrowdfunding06-common-reverse —
[INFO] Connecting to the Database
[INFO] Introspecting table t_admin
[INFO] Generating Example class for table t_admin
[INFO] Generating Record class for table t_admin
[INFO] Generating Mapper Interface for table t_admin
[INFO] Generating SQL Map for table t_admin
[INFO] Saving file AdminMapper.xml
[INFO] Saving file AdminExample.java
[INFO] Saving file Admin.java
[INFO] Saving file AdminMapper.java
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

相关文章: