SpringCloud 框架搭建过程中报错Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate (default-cli) on project fight-service: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate failed: An API incompatibility was encountered while executing org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate: java.lang.NoSuchMethodError: org.mybatis.generator.internal.util.ClassloaderUtility.getCustomClassloader(Ljava/util/Collection;)Ljava/lang/ClassLoader;

  • 在搭建Spring cloud框架的时候集成了mybatis但是在使用mybatis的逆向工程时候出现了上述的错误,直到我注意到控制台中的一句话SpringCloud 框架搭建过程中报错Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin_第1张图片
  • 可以注意到这里所需的mybatis-generator-maven-plugin库版本为1.3.7,但是这和我jar包的版本不一致于是在该Moduls中将版本号改为1.3.7后便成功运行。
  • SpringCloud 框架搭建过程中报错Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin_第2张图片
    -END-

你可能感兴趣的:(Spring)