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
該配置的都配置了啊!為什么匯報(bào)插件不存在?
2019-01-11
1樓解決了么,我也遇到這個(gè)問題了
2018-12-26
在maven的settings.xml里加一些配置試試,具體加什么配置參考這個(gè)http://www.360doc.com/content/14/0106/17/1332348_343100544.shtml ? ????????????????????????????????????????????
?? ?????????????????????????????????????????????
2018-12-25
試了樓上的,沒用
2018-12-24
clean之后試試這個(gè)
<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>
? ? ? ? ? ? ?<!-- 自動(dòng)生成代碼插件 -->
? ? ? ? ? ? ?<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?
版權(quán)聲明:本文為博主原創(chuàng)文章,轉(zhuǎn)載請(qǐng)附上博文鏈接!