问答详情
源自:2-4 Mybatis自动生成器使用方式

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://img.mukewang.com/5c20988600011ac106930543.jpg

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

提问者:叶涙 2018-12-24 16:28

个回答

  • qq_Michael_qA
    2019-01-11 13:14:11

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

  • 慕拉拉啦啦啦啦啦
    2018-12-26 09:32:30

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

  • plough
    2018-12-25 15:19:47

    试了楼上的,没用

  • xyyyy318
    2018-12-24 22:13:23

    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 

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