Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin

https://www.jianshu.com/p/1a77ee344222

ps:如果是linux或是dcoker里面,my.ini文件就变成了my.cnf文件。docker的路径为 /etc/mysql/mycnf

   

   

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mybatis01: <properties> resource generator.properties does not exist

   

   

如果执行generator出现此错误,可以尝试注释pom文件中的配置文件,因为会影响resource文件的导入/读取。

   

  1. <!--idea里的xml文件,只支持在resource中读取,此处配置后,可以在其它地方读取-->
  2. <resources>
  3.     <resource>
  4.         <directory>src/main/java</directory>
  5.         <includes>
  6.             <include>**/*.xml</include>
  7.         </includes>
  8.     </resource>
  9. </resources>

   

 

posted @ 2020-10-19 01:15  黑质白章  阅读(6011)  评论(0编辑  收藏  举报