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

mybatis-generator生成失败

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

[INFO] BUILD FAILURE

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

[INFO] Total time: 4.599 s

[INFO] Finished at: 2018-12-24T16:22:13+08:00

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

[ERROR] No plugin found for prefix 'mybaits-generator' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (D:\maven\repo), nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public)] -> [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

https://img1.sycdn.imooc.com//5c20988600011ac106930543.jpg

该配置的都配置了啊!为什么汇报插件不存在?

正在回答

4 回答

1楼解决了么,我也遇到这个问题了

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

在maven的settings.xml里加一些配置试试,具体加什么配置参考这个http://www.360doc.com/content/14/0106/17/1332348_343100544.shtml                                               
                                                

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

试了楼上的,没用

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

clean之后试试这个

<build>

<plugins>

<plugin>

   <groupId>org.springframework.boot</groupId>

   <artifactId>spring-boot-maven-plugin</artifactId>

   <configuration>  

                      <configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>  

                      <overwrite>true</overwrite>  

                   </configuration>

</plugin>

             <!-- 自动生成代码插件 -->

             <plugin>

                <groupId>org.mybatis.generator</groupId>

                <artifactId>mybatis-generator-maven-plugin</artifactId>

                <version>1.3.0</version>

                <configuration>

                    <verbose>true</verbose>

                    <overwrite>true</overwrite>

                </configuration>

                <dependencies>

                    <dependency>

                        <groupId>mysql</groupId>

                        <artifactId>mysql-connector-java</artifactId>

                        <version>5.1.6</version>

                    </dependency>

                    <dependency>

                        <groupId>org.mybatis.generator</groupId>

                        <artifactId>mybatis-generator-core</artifactId>

                        <version>1.3.1</version>

                    </dependency>

                    <dependency>

    <groupId>log4j</groupId>

<artifactId>log4j</artifactId>

<version>1.2.17</version>

    </dependency>

                </dependencies>

            </plugin>

</plugins>

</build>

--------------------- 

作者:pc994 

来源:CSDN 

原文:https://blog.csdn.net/pc994/article/details/79848291 

版权声明:本文为博主原创文章,转载请附上博文链接!


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

举报

0/150
提交
取消

mybatis-generator生成失败

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