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>

   

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM